MapState constructor

const MapState({
  1. bool isMapInitialized = false,
  2. bool isFollowingUser = true,
  3. bool showMyRoute = true,
  4. Map<String, Polyline>? polylines,
  5. Map<String, Marker>? markers,
})

Implementation

const MapState(
    {this.isMapInitialized = false,
    this.isFollowingUser = true,
    this.showMyRoute = true,
    Map<String, Polyline>? polylines,
    Map<String, Marker>? markers})
    : polylines = polylines ?? const {},
      markers = markers ?? const {};