Fps class

fps 获取 官方推荐的方式 SchedulerBinding.instance.addTimingsCallback 注意不能和window.onReportTimings一起用,会冲突 其帧率计算方式为 FPS=实际绘制帧数*fpsHz(一般是60hz,也有90,120的)/(实际绘制帧数+丢帧数) 参考文章 https://yrom.net/blog/2019/08/01/how-to-get-fps-in-flutter-app-codes/

Properties

hashCode int
The hash code for this object.
no setterinherited
lastFrames ListQueue<FrameTiming>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerCallBack(FpsCallback back) → dynamic
toString() String
A string representation of this object.
inherited
unregisterCallBack(FpsCallback back) → dynamic

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance Fps
单例
no setter