// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of 'map_bloc.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

/// @nodoc
mixin _$MapEvent {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $MapEventCopyWith<$Res> {
  factory $MapEventCopyWith(MapEvent value, $Res Function(MapEvent) then) =
      _$MapEventCopyWithImpl<$Res, MapEvent>;
}

/// @nodoc
class _$MapEventCopyWithImpl<$Res, $Val extends MapEvent>
    implements $MapEventCopyWith<$Res> {
  _$MapEventCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;
}

/// @nodoc
abstract class _$$ClearSearchFieldCopyWith<$Res> {
  factory _$$ClearSearchFieldCopyWith(
          _$ClearSearchField value, $Res Function(_$ClearSearchField) then) =
      __$$ClearSearchFieldCopyWithImpl<$Res>;
}

/// @nodoc
class __$$ClearSearchFieldCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$ClearSearchField>
    implements _$$ClearSearchFieldCopyWith<$Res> {
  __$$ClearSearchFieldCopyWithImpl(
      _$ClearSearchField _value, $Res Function(_$ClearSearchField) _then)
      : super(_value, _then);
}

/// @nodoc

class _$ClearSearchField implements ClearSearchField {
  const _$ClearSearchField();

  @override
  String toString() {
    return 'MapEvent.clearSearchField()';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType && other is _$ClearSearchField);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return clearSearchField();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return clearSearchField?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (clearSearchField != null) {
      return clearSearchField();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return clearSearchField(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return clearSearchField?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (clearSearchField != null) {
      return clearSearchField(this);
    }
    return orElse();
  }
}

abstract class ClearSearchField implements MapEvent {
  const factory ClearSearchField() = _$ClearSearchField;
}

/// @nodoc
abstract class _$$SetQueryCopyWith<$Res> {
  factory _$$SetQueryCopyWith(
          _$SetQuery value, $Res Function(_$SetQuery) then) =
      __$$SetQueryCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$SetQueryCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$SetQuery>
    implements _$$SetQueryCopyWith<$Res> {
  __$$SetQueryCopyWithImpl(_$SetQuery _value, $Res Function(_$SetQuery) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$SetQuery(
      null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$SetQuery implements SetQuery {
  const _$SetQuery(this.context);

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'MapEvent.setQuery(context: $context)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$SetQuery &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$SetQueryCopyWith<_$SetQuery> get copyWith =>
      __$$SetQueryCopyWithImpl<_$SetQuery>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return setQuery(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return setQuery?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (setQuery != null) {
      return setQuery(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return setQuery(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return setQuery?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (setQuery != null) {
      return setQuery(this);
    }
    return orElse();
  }
}

abstract class SetQuery implements MapEvent {
  const factory SetQuery(final BuildContext context) = _$SetQuery;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$SetQueryCopyWith<_$SetQuery> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$SearchLocationsCopyWith<$Res> {
  factory _$$SearchLocationsCopyWith(
          _$SearchLocations value, $Res Function(_$SearchLocations) then) =
      __$$SearchLocationsCopyWithImpl<$Res>;
}

/// @nodoc
class __$$SearchLocationsCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$SearchLocations>
    implements _$$SearchLocationsCopyWith<$Res> {
  __$$SearchLocationsCopyWithImpl(
      _$SearchLocations _value, $Res Function(_$SearchLocations) _then)
      : super(_value, _then);
}

/// @nodoc

class _$SearchLocations implements SearchLocations {
  const _$SearchLocations();

  @override
  String toString() {
    return 'MapEvent.searchLocations()';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType && other is _$SearchLocations);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return searchLocations();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return searchLocations?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (searchLocations != null) {
      return searchLocations();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return searchLocations(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return searchLocations?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (searchLocations != null) {
      return searchLocations(this);
    }
    return orElse();
  }
}

abstract class SearchLocations implements MapEvent {
  const factory SearchLocations() = _$SearchLocations;
}

/// @nodoc
abstract class _$$SetMapControllerCopyWith<$Res> {
  factory _$$SetMapControllerCopyWith(
          _$SetMapController value, $Res Function(_$SetMapController) then) =
      __$$SetMapControllerCopyWithImpl<$Res>;
  @useResult
  $Res call({GoogleMapController controller});
}

/// @nodoc
class __$$SetMapControllerCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$SetMapController>
    implements _$$SetMapControllerCopyWith<$Res> {
  __$$SetMapControllerCopyWithImpl(
      _$SetMapController _value, $Res Function(_$SetMapController) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? controller = null,
  }) {
    return _then(_$SetMapController(
      null == controller
          ? _value.controller
          : controller // ignore: cast_nullable_to_non_nullable
              as GoogleMapController,
    ));
  }
}

/// @nodoc

class _$SetMapController implements SetMapController {
  const _$SetMapController(this.controller);

  @override
  final GoogleMapController controller;

  @override
  String toString() {
    return 'MapEvent.setMapController(controller: $controller)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$SetMapController &&
            (identical(other.controller, controller) ||
                other.controller == controller));
  }

  @override
  int get hashCode => Object.hash(runtimeType, controller);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$SetMapControllerCopyWith<_$SetMapController> get copyWith =>
      __$$SetMapControllerCopyWithImpl<_$SetMapController>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return setMapController(controller);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return setMapController?.call(controller);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (setMapController != null) {
      return setMapController(controller);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return setMapController(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return setMapController?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (setMapController != null) {
      return setMapController(this);
    }
    return orElse();
  }
}

abstract class SetMapController implements MapEvent {
  const factory SetMapController(final GoogleMapController controller) =
      _$SetMapController;

  GoogleMapController get controller;
  @JsonKey(ignore: true)
  _$$SetMapControllerCopyWith<_$SetMapController> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$SetChoosingCopyWith<$Res> {
  factory _$$SetChoosingCopyWith(
          _$SetChoosing value, $Res Function(_$SetChoosing) then) =
      __$$SetChoosingCopyWithImpl<$Res>;
  @useResult
  $Res call({bool value});
}

/// @nodoc
class __$$SetChoosingCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$SetChoosing>
    implements _$$SetChoosingCopyWith<$Res> {
  __$$SetChoosingCopyWithImpl(
      _$SetChoosing _value, $Res Function(_$SetChoosing) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? value = null,
  }) {
    return _then(_$SetChoosing(
      null == value
          ? _value.value
          : value // ignore: cast_nullable_to_non_nullable
              as bool,
    ));
  }
}

/// @nodoc

class _$SetChoosing implements SetChoosing {
  const _$SetChoosing(this.value);

  @override
  final bool value;

  @override
  String toString() {
    return 'MapEvent.setChoosing(value: $value)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$SetChoosing &&
            (identical(other.value, value) || other.value == value));
  }

  @override
  int get hashCode => Object.hash(runtimeType, value);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$SetChoosingCopyWith<_$SetChoosing> get copyWith =>
      __$$SetChoosingCopyWithImpl<_$SetChoosing>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return setChoosing(value);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return setChoosing?.call(value);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (setChoosing != null) {
      return setChoosing(value);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return setChoosing(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return setChoosing?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (setChoosing != null) {
      return setChoosing(this);
    }
    return orElse();
  }
}

abstract class SetChoosing implements MapEvent {
  const factory SetChoosing(final bool value) = _$SetChoosing;

  bool get value;
  @JsonKey(ignore: true)
  _$$SetChoosingCopyWith<_$SetChoosing> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$GoToLocationCopyWith<$Res> {
  factory _$$GoToLocationCopyWith(
          _$GoToLocation value, $Res Function(_$GoToLocation) then) =
      __$$GoToLocationCopyWithImpl<$Res>;
  @useResult
  $Res call({Place place});
}

/// @nodoc
class __$$GoToLocationCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$GoToLocation>
    implements _$$GoToLocationCopyWith<$Res> {
  __$$GoToLocationCopyWithImpl(
      _$GoToLocation _value, $Res Function(_$GoToLocation) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? place = null,
  }) {
    return _then(_$GoToLocation(
      place: null == place
          ? _value.place
          : place // ignore: cast_nullable_to_non_nullable
              as Place,
    ));
  }
}

/// @nodoc

class _$GoToLocation implements GoToLocation {
  const _$GoToLocation({required this.place});

  @override
  final Place place;

  @override
  String toString() {
    return 'MapEvent.goToLocation(place: $place)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GoToLocation &&
            (identical(other.place, place) || other.place == place));
  }

  @override
  int get hashCode => Object.hash(runtimeType, place);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GoToLocationCopyWith<_$GoToLocation> get copyWith =>
      __$$GoToLocationCopyWithImpl<_$GoToLocation>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return goToLocation(place);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return goToLocation?.call(place);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (goToLocation != null) {
      return goToLocation(place);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return goToLocation(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return goToLocation?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (goToLocation != null) {
      return goToLocation(this);
    }
    return orElse();
  }
}

abstract class GoToLocation implements MapEvent {
  const factory GoToLocation({required final Place place}) = _$GoToLocation;

  Place get place;
  @JsonKey(ignore: true)
  _$$GoToLocationCopyWith<_$GoToLocation> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$GoToMyLocationCopyWith<$Res> {
  factory _$$GoToMyLocationCopyWith(
          _$GoToMyLocation value, $Res Function(_$GoToMyLocation) then) =
      __$$GoToMyLocationCopyWithImpl<$Res>;
  @useResult
  $Res call({LatLng location});
}

/// @nodoc
class __$$GoToMyLocationCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$GoToMyLocation>
    implements _$$GoToMyLocationCopyWith<$Res> {
  __$$GoToMyLocationCopyWithImpl(
      _$GoToMyLocation _value, $Res Function(_$GoToMyLocation) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? location = null,
  }) {
    return _then(_$GoToMyLocation(
      location: null == location
          ? _value.location
          : location // ignore: cast_nullable_to_non_nullable
              as LatLng,
    ));
  }
}

/// @nodoc

class _$GoToMyLocation implements GoToMyLocation {
  const _$GoToMyLocation({required this.location});

  @override
  final LatLng location;

  @override
  String toString() {
    return 'MapEvent.goToMyLocation(location: $location)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GoToMyLocation &&
            (identical(other.location, location) ||
                other.location == location));
  }

  @override
  int get hashCode => Object.hash(runtimeType, location);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GoToMyLocationCopyWith<_$GoToMyLocation> get copyWith =>
      __$$GoToMyLocationCopyWithImpl<_$GoToMyLocation>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return goToMyLocation(location);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return goToMyLocation?.call(location);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (goToMyLocation != null) {
      return goToMyLocation(location);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return goToMyLocation(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return goToMyLocation?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (goToMyLocation != null) {
      return goToMyLocation(this);
    }
    return orElse();
  }
}

abstract class GoToMyLocation implements MapEvent {
  const factory GoToMyLocation({required final LatLng location}) =
      _$GoToMyLocation;

  LatLng get location;
  @JsonKey(ignore: true)
  _$$GoToMyLocationCopyWith<_$GoToMyLocation> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$FindMyLocationCopyWith<$Res> {
  factory _$$FindMyLocationCopyWith(
          _$FindMyLocation value, $Res Function(_$FindMyLocation) then) =
      __$$FindMyLocationCopyWithImpl<$Res>;
  @useResult
  $Res call({BuildContext context});
}

/// @nodoc
class __$$FindMyLocationCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$FindMyLocation>
    implements _$$FindMyLocationCopyWith<$Res> {
  __$$FindMyLocationCopyWithImpl(
      _$FindMyLocation _value, $Res Function(_$FindMyLocation) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? context = null,
  }) {
    return _then(_$FindMyLocation(
      null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
    ));
  }
}

/// @nodoc

class _$FindMyLocation implements FindMyLocation {
  const _$FindMyLocation(this.context);

  @override
  final BuildContext context;

  @override
  String toString() {
    return 'MapEvent.findMyLocation(context: $context)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$FindMyLocation &&
            (identical(other.context, context) || other.context == context));
  }

  @override
  int get hashCode => Object.hash(runtimeType, context);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$FindMyLocationCopyWith<_$FindMyLocation> get copyWith =>
      __$$FindMyLocationCopyWithImpl<_$FindMyLocation>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return findMyLocation(context);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return findMyLocation?.call(context);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (findMyLocation != null) {
      return findMyLocation(context);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return findMyLocation(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return findMyLocation?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (findMyLocation != null) {
      return findMyLocation(this);
    }
    return orElse();
  }
}

abstract class FindMyLocation implements MapEvent {
  const factory FindMyLocation(final BuildContext context) = _$FindMyLocation;

  BuildContext get context;
  @JsonKey(ignore: true)
  _$$FindMyLocationCopyWith<_$FindMyLocation> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$GoToTappedLocationCopyWith<$Res> {
  factory _$$GoToTappedLocationCopyWith(_$GoToTappedLocation value,
          $Res Function(_$GoToTappedLocation) then) =
      __$$GoToTappedLocationCopyWithImpl<$Res>;
  @useResult
  $Res call({LatLng latLng});
}

/// @nodoc
class __$$GoToTappedLocationCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$GoToTappedLocation>
    implements _$$GoToTappedLocationCopyWith<$Res> {
  __$$GoToTappedLocationCopyWithImpl(
      _$GoToTappedLocation _value, $Res Function(_$GoToTappedLocation) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? latLng = null,
  }) {
    return _then(_$GoToTappedLocation(
      null == latLng
          ? _value.latLng
          : latLng // ignore: cast_nullable_to_non_nullable
              as LatLng,
    ));
  }
}

/// @nodoc

class _$GoToTappedLocation implements GoToTappedLocation {
  const _$GoToTappedLocation(this.latLng);

  @override
  final LatLng latLng;

  @override
  String toString() {
    return 'MapEvent.goToTappedLocation(latLng: $latLng)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$GoToTappedLocation &&
            (identical(other.latLng, latLng) || other.latLng == latLng));
  }

  @override
  int get hashCode => Object.hash(runtimeType, latLng);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$GoToTappedLocationCopyWith<_$GoToTappedLocation> get copyWith =>
      __$$GoToTappedLocationCopyWithImpl<_$GoToTappedLocation>(
          this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return goToTappedLocation(latLng);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return goToTappedLocation?.call(latLng);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (goToTappedLocation != null) {
      return goToTappedLocation(latLng);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return goToTappedLocation(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return goToTappedLocation?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (goToTappedLocation != null) {
      return goToTappedLocation(this);
    }
    return orElse();
  }
}

abstract class GoToTappedLocation implements MapEvent {
  const factory GoToTappedLocation(final LatLng latLng) = _$GoToTappedLocation;

  LatLng get latLng;
  @JsonKey(ignore: true)
  _$$GoToTappedLocationCopyWith<_$GoToTappedLocation> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$SetTitleCopyWith<$Res> {
  factory _$$SetTitleCopyWith(
          _$SetTitle value, $Res Function(_$SetTitle) then) =
      __$$SetTitleCopyWithImpl<$Res>;
  @useResult
  $Res call({String title});
}

/// @nodoc
class __$$SetTitleCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$SetTitle>
    implements _$$SetTitleCopyWith<$Res> {
  __$$SetTitleCopyWithImpl(_$SetTitle _value, $Res Function(_$SetTitle) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? title = null,
  }) {
    return _then(_$SetTitle(
      null == title
          ? _value.title
          : title // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc

class _$SetTitle implements SetTitle {
  const _$SetTitle(this.title);

  @override
  final String title;

  @override
  String toString() {
    return 'MapEvent.setTitle(title: $title)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$SetTitle &&
            (identical(other.title, title) || other.title == title));
  }

  @override
  int get hashCode => Object.hash(runtimeType, title);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$SetTitleCopyWith<_$SetTitle> get copyWith =>
      __$$SetTitleCopyWithImpl<_$SetTitle>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return setTitle(title);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return setTitle?.call(title);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (setTitle != null) {
      return setTitle(title);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return setTitle(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return setTitle?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (setTitle != null) {
      return setTitle(this);
    }
    return orElse();
  }
}

abstract class SetTitle implements MapEvent {
  const factory SetTitle(final String title) = _$SetTitle;

  String get title;
  @JsonKey(ignore: true)
  _$$SetTitleCopyWith<_$SetTitle> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$SaveLocalAddressCopyWith<$Res> {
  factory _$$SaveLocalAddressCopyWith(
          _$SaveLocalAddress value, $Res Function(_$SaveLocalAddress) then) =
      __$$SaveLocalAddressCopyWithImpl<$Res>;
  @useResult
  $Res call(
      {bool? hasBack,
      BuildContext context,
      VoidCallback? onBack,
      VoidCallback? onGoMain});
}

/// @nodoc
class __$$SaveLocalAddressCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$SaveLocalAddress>
    implements _$$SaveLocalAddressCopyWith<$Res> {
  __$$SaveLocalAddressCopyWithImpl(
      _$SaveLocalAddress _value, $Res Function(_$SaveLocalAddress) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? hasBack = freezed,
    Object? context = null,
    Object? onBack = freezed,
    Object? onGoMain = freezed,
  }) {
    return _then(_$SaveLocalAddress(
      freezed == hasBack
          ? _value.hasBack
          : hasBack // ignore: cast_nullable_to_non_nullable
              as bool?,
      context: null == context
          ? _value.context
          : context // ignore: cast_nullable_to_non_nullable
              as BuildContext,
      onBack: freezed == onBack
          ? _value.onBack
          : onBack // ignore: cast_nullable_to_non_nullable
              as VoidCallback?,
      onGoMain: freezed == onGoMain
          ? _value.onGoMain
          : onGoMain // ignore: cast_nullable_to_non_nullable
              as VoidCallback?,
    ));
  }
}

/// @nodoc

class _$SaveLocalAddress implements SaveLocalAddress {
  const _$SaveLocalAddress(this.hasBack,
      {required this.context, this.onBack, this.onGoMain});

  @override
  final bool? hasBack;
  @override
  final BuildContext context;
  @override
  final VoidCallback? onBack;
  @override
  final VoidCallback? onGoMain;

  @override
  String toString() {
    return 'MapEvent.saveLocalAddress(hasBack: $hasBack, context: $context, onBack: $onBack, onGoMain: $onGoMain)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$SaveLocalAddress &&
            (identical(other.hasBack, hasBack) || other.hasBack == hasBack) &&
            (identical(other.context, context) || other.context == context) &&
            (identical(other.onBack, onBack) || other.onBack == onBack) &&
            (identical(other.onGoMain, onGoMain) ||
                other.onGoMain == onGoMain));
  }

  @override
  int get hashCode =>
      Object.hash(runtimeType, hasBack, context, onBack, onGoMain);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$SaveLocalAddressCopyWith<_$SaveLocalAddress> get copyWith =>
      __$$SaveLocalAddressCopyWithImpl<_$SaveLocalAddress>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return saveLocalAddress(hasBack, context, onBack, onGoMain);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return saveLocalAddress?.call(hasBack, context, onBack, onGoMain);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (saveLocalAddress != null) {
      return saveLocalAddress(hasBack, context, onBack, onGoMain);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return saveLocalAddress(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return saveLocalAddress?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (saveLocalAddress != null) {
      return saveLocalAddress(this);
    }
    return orElse();
  }
}

abstract class SaveLocalAddress implements MapEvent {
  const factory SaveLocalAddress(final bool? hasBack,
      {required final BuildContext context,
      final VoidCallback? onBack,
      final VoidCallback? onGoMain}) = _$SaveLocalAddress;

  bool? get hasBack;
  BuildContext get context;
  VoidCallback? get onBack;
  VoidCallback? get onGoMain;
  @JsonKey(ignore: true)
  _$$SaveLocalAddressCopyWith<_$SaveLocalAddress> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$FetchLocationNameCopyWith<$Res> {
  factory _$$FetchLocationNameCopyWith(
          _$FetchLocationName value, $Res Function(_$FetchLocationName) then) =
      __$$FetchLocationNameCopyWithImpl<$Res>;
  @useResult
  $Res call({LatLng? latLng});
}

/// @nodoc
class __$$FetchLocationNameCopyWithImpl<$Res>
    extends _$MapEventCopyWithImpl<$Res, _$FetchLocationName>
    implements _$$FetchLocationNameCopyWith<$Res> {
  __$$FetchLocationNameCopyWithImpl(
      _$FetchLocationName _value, $Res Function(_$FetchLocationName) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? latLng = freezed,
  }) {
    return _then(_$FetchLocationName(
      freezed == latLng
          ? _value.latLng
          : latLng // ignore: cast_nullable_to_non_nullable
              as LatLng?,
    ));
  }
}

/// @nodoc

class _$FetchLocationName implements FetchLocationName {
  const _$FetchLocationName(this.latLng);

  @override
  final LatLng? latLng;

  @override
  String toString() {
    return 'MapEvent.fetchLocationName(latLng: $latLng)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$FetchLocationName &&
            (identical(other.latLng, latLng) || other.latLng == latLng));
  }

  @override
  int get hashCode => Object.hash(runtimeType, latLng);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$FetchLocationNameCopyWith<_$FetchLocationName> get copyWith =>
      __$$FetchLocationNameCopyWithImpl<_$FetchLocationName>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() clearSearchField,
    required TResult Function(BuildContext context) setQuery,
    required TResult Function() searchLocations,
    required TResult Function(GoogleMapController controller) setMapController,
    required TResult Function(bool value) setChoosing,
    required TResult Function(Place place) goToLocation,
    required TResult Function(LatLng location) goToMyLocation,
    required TResult Function(BuildContext context) findMyLocation,
    required TResult Function(LatLng latLng) goToTappedLocation,
    required TResult Function(String title) setTitle,
    required TResult Function(bool? hasBack, BuildContext context,
            VoidCallback? onBack, VoidCallback? onGoMain)
        saveLocalAddress,
    required TResult Function(LatLng? latLng) fetchLocationName,
  }) {
    return fetchLocationName(latLng);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? clearSearchField,
    TResult? Function(BuildContext context)? setQuery,
    TResult? Function()? searchLocations,
    TResult? Function(GoogleMapController controller)? setMapController,
    TResult? Function(bool value)? setChoosing,
    TResult? Function(Place place)? goToLocation,
    TResult? Function(LatLng location)? goToMyLocation,
    TResult? Function(BuildContext context)? findMyLocation,
    TResult? Function(LatLng latLng)? goToTappedLocation,
    TResult? Function(String title)? setTitle,
    TResult? Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult? Function(LatLng? latLng)? fetchLocationName,
  }) {
    return fetchLocationName?.call(latLng);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? clearSearchField,
    TResult Function(BuildContext context)? setQuery,
    TResult Function()? searchLocations,
    TResult Function(GoogleMapController controller)? setMapController,
    TResult Function(bool value)? setChoosing,
    TResult Function(Place place)? goToLocation,
    TResult Function(LatLng location)? goToMyLocation,
    TResult Function(BuildContext context)? findMyLocation,
    TResult Function(LatLng latLng)? goToTappedLocation,
    TResult Function(String title)? setTitle,
    TResult Function(bool? hasBack, BuildContext context, VoidCallback? onBack,
            VoidCallback? onGoMain)?
        saveLocalAddress,
    TResult Function(LatLng? latLng)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (fetchLocationName != null) {
      return fetchLocationName(latLng);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ClearSearchField value) clearSearchField,
    required TResult Function(SetQuery value) setQuery,
    required TResult Function(SearchLocations value) searchLocations,
    required TResult Function(SetMapController value) setMapController,
    required TResult Function(SetChoosing value) setChoosing,
    required TResult Function(GoToLocation value) goToLocation,
    required TResult Function(GoToMyLocation value) goToMyLocation,
    required TResult Function(FindMyLocation value) findMyLocation,
    required TResult Function(GoToTappedLocation value) goToTappedLocation,
    required TResult Function(SetTitle value) setTitle,
    required TResult Function(SaveLocalAddress value) saveLocalAddress,
    required TResult Function(FetchLocationName value) fetchLocationName,
  }) {
    return fetchLocationName(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ClearSearchField value)? clearSearchField,
    TResult? Function(SetQuery value)? setQuery,
    TResult? Function(SearchLocations value)? searchLocations,
    TResult? Function(SetMapController value)? setMapController,
    TResult? Function(SetChoosing value)? setChoosing,
    TResult? Function(GoToLocation value)? goToLocation,
    TResult? Function(GoToMyLocation value)? goToMyLocation,
    TResult? Function(FindMyLocation value)? findMyLocation,
    TResult? Function(GoToTappedLocation value)? goToTappedLocation,
    TResult? Function(SetTitle value)? setTitle,
    TResult? Function(SaveLocalAddress value)? saveLocalAddress,
    TResult? Function(FetchLocationName value)? fetchLocationName,
  }) {
    return fetchLocationName?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ClearSearchField value)? clearSearchField,
    TResult Function(SetQuery value)? setQuery,
    TResult Function(SearchLocations value)? searchLocations,
    TResult Function(SetMapController value)? setMapController,
    TResult Function(SetChoosing value)? setChoosing,
    TResult Function(GoToLocation value)? goToLocation,
    TResult Function(GoToMyLocation value)? goToMyLocation,
    TResult Function(FindMyLocation value)? findMyLocation,
    TResult Function(GoToTappedLocation value)? goToTappedLocation,
    TResult Function(SetTitle value)? setTitle,
    TResult Function(SaveLocalAddress value)? saveLocalAddress,
    TResult Function(FetchLocationName value)? fetchLocationName,
    required TResult orElse(),
  }) {
    if (fetchLocationName != null) {
      return fetchLocationName(this);
    }
    return orElse();
  }
}

abstract class FetchLocationName implements MapEvent {
  const factory FetchLocationName(final LatLng? latLng) = _$FetchLocationName;

  LatLng? get latLng;
  @JsonKey(ignore: true)
  _$$FetchLocationNameCopyWith<_$FetchLocationName> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
mixin _$MapState {
  bool get isSearching => throw _privateConstructorUsedError;
  bool get isSearchLoading => throw _privateConstructorUsedError;
  bool get isChoosing => throw _privateConstructorUsedError;
  List<Place> get searchedPlaces => throw _privateConstructorUsedError;
  String get title => throw _privateConstructorUsedError;
  TextEditingController? get textController =>
      throw _privateConstructorUsedError;
  GoogleMapController? get mapController => throw _privateConstructorUsedError;
  LatLng? get location => throw _privateConstructorUsedError;

  @JsonKey(ignore: true)
  $MapStateCopyWith<MapState> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $MapStateCopyWith<$Res> {
  factory $MapStateCopyWith(MapState value, $Res Function(MapState) then) =
      _$MapStateCopyWithImpl<$Res, MapState>;
  @useResult
  $Res call(
      {bool isSearching,
      bool isSearchLoading,
      bool isChoosing,
      List<Place> searchedPlaces,
      String title,
      TextEditingController? textController,
      GoogleMapController? mapController,
      LatLng? location});
}

/// @nodoc
class _$MapStateCopyWithImpl<$Res, $Val extends MapState>
    implements $MapStateCopyWith<$Res> {
  _$MapStateCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? isSearching = null,
    Object? isSearchLoading = null,
    Object? isChoosing = null,
    Object? searchedPlaces = null,
    Object? title = null,
    Object? textController = freezed,
    Object? mapController = freezed,
    Object? location = freezed,
  }) {
    return _then(_value.copyWith(
      isSearching: null == isSearching
          ? _value.isSearching
          : isSearching // ignore: cast_nullable_to_non_nullable
              as bool,
      isSearchLoading: null == isSearchLoading
          ? _value.isSearchLoading
          : isSearchLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isChoosing: null == isChoosing
          ? _value.isChoosing
          : isChoosing // ignore: cast_nullable_to_non_nullable
              as bool,
      searchedPlaces: null == searchedPlaces
          ? _value.searchedPlaces
          : searchedPlaces // ignore: cast_nullable_to_non_nullable
              as List<Place>,
      title: null == title
          ? _value.title
          : title // ignore: cast_nullable_to_non_nullable
              as String,
      textController: freezed == textController
          ? _value.textController
          : textController // ignore: cast_nullable_to_non_nullable
              as TextEditingController?,
      mapController: freezed == mapController
          ? _value.mapController
          : mapController // ignore: cast_nullable_to_non_nullable
              as GoogleMapController?,
      location: freezed == location
          ? _value.location
          : location // ignore: cast_nullable_to_non_nullable
              as LatLng?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$_MapStateCopyWith<$Res> implements $MapStateCopyWith<$Res> {
  factory _$$_MapStateCopyWith(
          _$_MapState value, $Res Function(_$_MapState) then) =
      __$$_MapStateCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {bool isSearching,
      bool isSearchLoading,
      bool isChoosing,
      List<Place> searchedPlaces,
      String title,
      TextEditingController? textController,
      GoogleMapController? mapController,
      LatLng? location});
}

/// @nodoc
class __$$_MapStateCopyWithImpl<$Res>
    extends _$MapStateCopyWithImpl<$Res, _$_MapState>
    implements _$$_MapStateCopyWith<$Res> {
  __$$_MapStateCopyWithImpl(
      _$_MapState _value, $Res Function(_$_MapState) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? isSearching = null,
    Object? isSearchLoading = null,
    Object? isChoosing = null,
    Object? searchedPlaces = null,
    Object? title = null,
    Object? textController = freezed,
    Object? mapController = freezed,
    Object? location = freezed,
  }) {
    return _then(_$_MapState(
      isSearching: null == isSearching
          ? _value.isSearching
          : isSearching // ignore: cast_nullable_to_non_nullable
              as bool,
      isSearchLoading: null == isSearchLoading
          ? _value.isSearchLoading
          : isSearchLoading // ignore: cast_nullable_to_non_nullable
              as bool,
      isChoosing: null == isChoosing
          ? _value.isChoosing
          : isChoosing // ignore: cast_nullable_to_non_nullable
              as bool,
      searchedPlaces: null == searchedPlaces
          ? _value._searchedPlaces
          : searchedPlaces // ignore: cast_nullable_to_non_nullable
              as List<Place>,
      title: null == title
          ? _value.title
          : title // ignore: cast_nullable_to_non_nullable
              as String,
      textController: freezed == textController
          ? _value.textController
          : textController // ignore: cast_nullable_to_non_nullable
              as TextEditingController?,
      mapController: freezed == mapController
          ? _value.mapController
          : mapController // ignore: cast_nullable_to_non_nullable
              as GoogleMapController?,
      location: freezed == location
          ? _value.location
          : location // ignore: cast_nullable_to_non_nullable
              as LatLng?,
    ));
  }
}

/// @nodoc

class _$_MapState implements _MapState {
  const _$_MapState(
      {this.isSearching = false,
      this.isSearchLoading = false,
      this.isChoosing = false,
      final List<Place> searchedPlaces = const [],
      this.title = '',
      this.textController,
      this.mapController,
      this.location})
      : _searchedPlaces = searchedPlaces;

  @override
  @JsonKey()
  final bool isSearching;
  @override
  @JsonKey()
  final bool isSearchLoading;
  @override
  @JsonKey()
  final bool isChoosing;
  final List<Place> _searchedPlaces;
  @override
  @JsonKey()
  List<Place> get searchedPlaces {
    if (_searchedPlaces is EqualUnmodifiableListView) return _searchedPlaces;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_searchedPlaces);
  }

  @override
  @JsonKey()
  final String title;
  @override
  final TextEditingController? textController;
  @override
  final GoogleMapController? mapController;
  @override
  final LatLng? location;

  @override
  String toString() {
    return 'MapState(isSearching: $isSearching, isSearchLoading: $isSearchLoading, isChoosing: $isChoosing, searchedPlaces: $searchedPlaces, title: $title, textController: $textController, mapController: $mapController, location: $location)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_MapState &&
            (identical(other.isSearching, isSearching) ||
                other.isSearching == isSearching) &&
            (identical(other.isSearchLoading, isSearchLoading) ||
                other.isSearchLoading == isSearchLoading) &&
            (identical(other.isChoosing, isChoosing) ||
                other.isChoosing == isChoosing) &&
            const DeepCollectionEquality()
                .equals(other._searchedPlaces, _searchedPlaces) &&
            (identical(other.title, title) || other.title == title) &&
            (identical(other.textController, textController) ||
                other.textController == textController) &&
            (identical(other.mapController, mapController) ||
                other.mapController == mapController) &&
            (identical(other.location, location) ||
                other.location == location));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType,
      isSearching,
      isSearchLoading,
      isChoosing,
      const DeepCollectionEquality().hash(_searchedPlaces),
      title,
      textController,
      mapController,
      location);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_MapStateCopyWith<_$_MapState> get copyWith =>
      __$$_MapStateCopyWithImpl<_$_MapState>(this, _$identity);
}

abstract class _MapState implements MapState {
  const factory _MapState(
      {final bool isSearching,
      final bool isSearchLoading,
      final bool isChoosing,
      final List<Place> searchedPlaces,
      final String title,
      final TextEditingController? textController,
      final GoogleMapController? mapController,
      final LatLng? location}) = _$_MapState;

  @override
  bool get isSearching;
  @override
  bool get isSearchLoading;
  @override
  bool get isChoosing;
  @override
  List<Place> get searchedPlaces;
  @override
  String get title;
  @override
  TextEditingController? get textController;
  @override
  GoogleMapController? get mapController;
  @override
  LatLng? get location;
  @override
  @JsonKey(ignore: true)
  _$$_MapStateCopyWith<_$_MapState> get copyWith =>
      throw _privateConstructorUsedError;
}
