toMap method Null safety

  1. @override
Map<String, Object?> toMap()

model -> map

Implementation

@override
Map<String, Object?> toMap() {
  return {
    'animate': this.animate,
    'delay': this.delay,
    'duration': this.duration,
    'fromValue': this.fromValue,
    'toValue': this.toValue,
    'easingCurve': this.easingCurve?.index,
    'trackMove': this.trackMove,
    'isPointMove': this.isPointMove,
    'isRotateWhenTrack': this.isRotateWhenTrack,
    'icon': this.icon,
  };
}