toMap method

Map<String, dynamic> toMap()

Converts this transform object to a Map.

Returns a Map representing the properties of this layer object, including the X and Y coordinates, rotation angle, scale factors, and flip flags.

Implementation

Map<String, dynamic> toMap() {
  return {
    'x': offset.dx,
    'y': offset.dy,
    'rotation': rotation,
    'scale': scale,
    'flipX': flipX,
    'flipY': flipY,
    'enableInteraction': enableInteraction,
    'type': 'default',
  };
}