initState method
Called when this object is inserted into the tree.
Implementation
@override
void initState() {
super.initState();
if (widget.filePath != null) {
_loadTraceData();
} else {
spans = widget.spans;
minTs = widget.minTs;
maxTs = widget.maxTs;
maxSpanDuration = 1000000000; // fallback if not loaded from json
final duration = maxTs! - minTs!;
zoomLevel = duration > 0 ? duration / 80.0 : 1.0;
offsetX = minTs!.toDouble();
isLoading = false;
}
}