BMFDot.fromMap constructor

BMFDot.fromMap(
  1. Map map
)

map => BMFDot

Implementation

BMFDot.fromMap(Map map)
    : assert(map['center'] != null),
      assert(map['radius'] != null),
      assert(map['color'] != null),
      super.fromMap(map) {
  center = BMFCoordinate.fromMap(map['center']);
  radius = map['radius'];
  color = ColorUtil.hexToColor(map['color']);
}