BMFCoordinateBounds.fromMap constructor

BMFCoordinateBounds.fromMap(
  1. Map map
)

map => BMFCoordinateBounds

Implementation

BMFCoordinateBounds.fromMap(Map map)
    : assert(map != null,
'Construct a BMFCoordinateBounds,The parameter map cannot be null'),
      assert(map.containsKey('northeast'),
      'Construct a BMFCoordinateBounds,The parameter northeast cannot be null'),
      assert(map.containsKey('southwest'),
      'Construct a BMFCoordinateBounds,The parameter southwest cannot be null') {
  northeast = BMFCoordinate.fromMap(map['northeast']);
  southwest = BMFCoordinate.fromMap(map['southwest']);
}