toMap method

Map<String, String> toMap()

Returns a Map representation of this Keyframe.

Implementation

Map<String, String> toMap() {
  return {
    ...style.toKeyframeMap(),
    'offset': '$offset',
    if (easing != null) 'easing': '$easing'
  };
}