copyWith method

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

Implementation

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