BMFTraceOverlayAnimateOption.formMap constructor Null safety
- Map map
map => BMFTraceOverlayAnimateOption
Implementation
BMFTraceOverlayAnimateOption.formMap(Map map)
: assert(map != null) // ignore: unnecessary_null_comparison
{
animate = map['animate'] as bool;
delay = map['delay'] as double;
duration = map['duration'] as double;
fromValue = map['fromValue'] as double;
toValue = map['toValue'] as double;
easingCurve =
BMFTraceOverlayAnimationEasingCurve.values[map['easingCurve'] as int];
trackMove = map['trackMove'] as bool;
isPointMove = map['isPointMove'] as bool;
isRotateWhenTrack = map['isRotateWhenTrack'] as bool;
icon = map['icon'];
}