BMFUserLocation.fromMap constructor Null safety

BMFUserLocation.fromMap(
  1. Map map
)

map => BMFUserLocation

Implementation

BMFUserLocation.fromMap(Map map) {
  updating = map['updating'];
  location =
      map['location'] == null ? null : BMFLocation.fromMap(map['location']);
  heading =
      map['heading'] == null ? null : BMFHeading.fromMap(map['heading']);
  title = map['title'];
  subtitle = map['subtitle'];
}