BMFEdgeInsets.fromMap constructor

BMFEdgeInsets.fromMap(
  1. Map map
)

map => BMFEdgeInsets

Implementation

BMFEdgeInsets.fromMap(Map map)
    : assert(map != null,
'Construct a BMFEdgeInsets,The parameter map cannot be null'),
      assert(map.containsKey('top'),
      'Construct a BMFEdgeInsets,The parameter top cannot be null'),
      assert(map.containsKey('left'),
      'Construct a BMFEdgeInsets,The parameter left cannot be null'),
      assert(map.containsKey('bottom'),
      'Construct a BMFEdgeInsets,The parameter bottom cannot be null'),
      assert(map.containsKey('right'),
      'Construct a BMFEdgeInsets,The parameter right cannot be null') {
  top = map['top'] as double;
  left = map['left'] as double;
  bottom = map['bottom'] as double;
  right = map['right'] as double;
}