BMFHeatMap.fromMap constructor
- Map map
map => BMFHeatMap
Implementation
BMFHeatMap.fromMap(Map map)
: assert(map != null,
'Construct a BMFHeatMap,The parameter map cannot be null'),
assert(map.containsKey('data')) {
if (map['data'] != null) {
data = new List<BMFHeatMapNode>();
map['data'].forEach((v) {
data.add(BMFHeatMapNode.fromMap(v as Map));
});
}
radius = map['radius'];
opacity = map['opacity'];
gradient =
map['gradient'] == null ? null : BMFGradient.fromMap(map['gradient']);
}