copyWith method

LocationState copyWith({
  1. bool? followingUser,
  2. LatLng? lastKnownLocation,
  3. List<LatLng>? myLocationHistory,
})

Implementation

LocationState copyWith({
  bool? followingUser,
  LatLng? lastKnownLocation,
  List<LatLng>? myLocationHistory,
}) =>
    LocationState(
      followingUser: followingUser ?? this.followingUser,
      lastKnownLocation: lastKnownLocation ?? this.lastKnownLocation,
      myLocationHistory: myLocationHistory ?? this.myLocationHistory,
    );