toMap method

Map<String, double> toMap()

Serializes to the map format expected by the native layers.

Implementation

Map<String, double> toMap() => {
      'left': left,
      'top': top,
      'right': right,
      'bottom': bottom,
    };