start method
void
start()
Implementation
void start() async {
if (!_started) {
_started = true;
ElementsBinding.instance!.addTimingsCallback((List<FrameTiming> timings) {
if (_fpsCallbacks.isNotEmpty) {
List<FpsInfo> fps = timings.map<FpsInfo>((timing) => FpsInfo(timing)).toList();
for (var callback in _fpsCallbacks) {
callback(fps);
}
}
});
}
}