PointStyle.fromMap constructor

PointStyle.fromMap(
  1. Map<String, dynamic> map
)

Creates a PointStyle object from a map.

Implementation

factory PointStyle.fromMap(Map<String, dynamic> map) {
  return PointStyle(
    size: map['size'] as double,
    color: Color(map['color'] as int),
  );
}