// 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 'order_loader_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#adding-getters-and-methods-to-our-models',
);

/// @nodoc
mixin _$OrderLoaderEvent {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String status) statusChanged,
    required TResult Function(String search) searchChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function(bool isRefresh) fetched,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String status)? statusChanged,
    TResult? Function(String search)? searchChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function(bool isRefresh)? fetched,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String status)? statusChanged,
    TResult Function(String search)? searchChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function(bool isRefresh)? fetched,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_StatusChanged value) statusChanged,
    required TResult Function(_SearchChanged value) searchChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_StatusChanged value)? statusChanged,
    TResult? Function(_SearchChanged value)? searchChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_StatusChanged value)? statusChanged,
    TResult Function(_SearchChanged value)? searchChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $OrderLoaderEventCopyWith<$Res> {
  factory $OrderLoaderEventCopyWith(
    OrderLoaderEvent value,
    $Res Function(OrderLoaderEvent) then,
  ) = _$OrderLoaderEventCopyWithImpl<$Res, OrderLoaderEvent>;
}

/// @nodoc
class _$OrderLoaderEventCopyWithImpl<$Res, $Val extends OrderLoaderEvent>
    implements $OrderLoaderEventCopyWith<$Res> {
  _$OrderLoaderEventCopyWithImpl(this._value, this._then);

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

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc
abstract class _$$RangeDateChangedImplCopyWith<$Res> {
  factory _$$RangeDateChangedImplCopyWith(
    _$RangeDateChangedImpl value,
    $Res Function(_$RangeDateChangedImpl) then,
  ) = __$$RangeDateChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({DateTime dateFrom, DateTime dateTo});
}

/// @nodoc
class __$$RangeDateChangedImplCopyWithImpl<$Res>
    extends _$OrderLoaderEventCopyWithImpl<$Res, _$RangeDateChangedImpl>
    implements _$$RangeDateChangedImplCopyWith<$Res> {
  __$$RangeDateChangedImplCopyWithImpl(
    _$RangeDateChangedImpl _value,
    $Res Function(_$RangeDateChangedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? dateFrom = null, Object? dateTo = null}) {
    return _then(
      _$RangeDateChangedImpl(
        null == dateFrom
            ? _value.dateFrom
            : dateFrom // ignore: cast_nullable_to_non_nullable
                  as DateTime,
        null == dateTo
            ? _value.dateTo
            : dateTo // ignore: cast_nullable_to_non_nullable
                  as DateTime,
      ),
    );
  }
}

/// @nodoc

class _$RangeDateChangedImpl implements _RangeDateChanged {
  const _$RangeDateChangedImpl(this.dateFrom, this.dateTo);

  @override
  final DateTime dateFrom;
  @override
  final DateTime dateTo;

  @override
  String toString() {
    return 'OrderLoaderEvent.rangeDateChanged(dateFrom: $dateFrom, dateTo: $dateTo)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$RangeDateChangedImpl &&
            (identical(other.dateFrom, dateFrom) ||
                other.dateFrom == dateFrom) &&
            (identical(other.dateTo, dateTo) || other.dateTo == dateTo));
  }

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

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$RangeDateChangedImplCopyWith<_$RangeDateChangedImpl> get copyWith =>
      __$$RangeDateChangedImplCopyWithImpl<_$RangeDateChangedImpl>(
        this,
        _$identity,
      );

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String status) statusChanged,
    required TResult Function(String search) searchChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function(bool isRefresh) fetched,
  }) {
    return rangeDateChanged(dateFrom, dateTo);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String status)? statusChanged,
    TResult? Function(String search)? searchChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function(bool isRefresh)? fetched,
  }) {
    return rangeDateChanged?.call(dateFrom, dateTo);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String status)? statusChanged,
    TResult Function(String search)? searchChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function(bool isRefresh)? fetched,
    required TResult orElse(),
  }) {
    if (rangeDateChanged != null) {
      return rangeDateChanged(dateFrom, dateTo);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_StatusChanged value) statusChanged,
    required TResult Function(_SearchChanged value) searchChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) {
    return rangeDateChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_StatusChanged value)? statusChanged,
    TResult? Function(_SearchChanged value)? searchChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) {
    return rangeDateChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_StatusChanged value)? statusChanged,
    TResult Function(_SearchChanged value)? searchChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) {
    if (rangeDateChanged != null) {
      return rangeDateChanged(this);
    }
    return orElse();
  }
}

abstract class _RangeDateChanged implements OrderLoaderEvent {
  const factory _RangeDateChanged(
    final DateTime dateFrom,
    final DateTime dateTo,
  ) = _$RangeDateChangedImpl;

  DateTime get dateFrom;
  DateTime get dateTo;

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$RangeDateChangedImplCopyWith<_$RangeDateChangedImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$StatusChangedImplCopyWith<$Res> {
  factory _$$StatusChangedImplCopyWith(
    _$StatusChangedImpl value,
    $Res Function(_$StatusChangedImpl) then,
  ) = __$$StatusChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String status});
}

/// @nodoc
class __$$StatusChangedImplCopyWithImpl<$Res>
    extends _$OrderLoaderEventCopyWithImpl<$Res, _$StatusChangedImpl>
    implements _$$StatusChangedImplCopyWith<$Res> {
  __$$StatusChangedImplCopyWithImpl(
    _$StatusChangedImpl _value,
    $Res Function(_$StatusChangedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? status = null}) {
    return _then(
      _$StatusChangedImpl(
        null == status
            ? _value.status
            : status // ignore: cast_nullable_to_non_nullable
                  as String,
      ),
    );
  }
}

/// @nodoc

class _$StatusChangedImpl implements _StatusChanged {
  const _$StatusChangedImpl(this.status);

  @override
  final String status;

  @override
  String toString() {
    return 'OrderLoaderEvent.statusChanged(status: $status)';
  }

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

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

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$StatusChangedImplCopyWith<_$StatusChangedImpl> get copyWith =>
      __$$StatusChangedImplCopyWithImpl<_$StatusChangedImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String status) statusChanged,
    required TResult Function(String search) searchChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function(bool isRefresh) fetched,
  }) {
    return statusChanged(status);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String status)? statusChanged,
    TResult? Function(String search)? searchChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function(bool isRefresh)? fetched,
  }) {
    return statusChanged?.call(status);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String status)? statusChanged,
    TResult Function(String search)? searchChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function(bool isRefresh)? fetched,
    required TResult orElse(),
  }) {
    if (statusChanged != null) {
      return statusChanged(status);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_StatusChanged value) statusChanged,
    required TResult Function(_SearchChanged value) searchChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) {
    return statusChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_StatusChanged value)? statusChanged,
    TResult? Function(_SearchChanged value)? searchChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) {
    return statusChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_StatusChanged value)? statusChanged,
    TResult Function(_SearchChanged value)? searchChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) {
    if (statusChanged != null) {
      return statusChanged(this);
    }
    return orElse();
  }
}

abstract class _StatusChanged implements OrderLoaderEvent {
  const factory _StatusChanged(final String status) = _$StatusChangedImpl;

  String get status;

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$StatusChangedImplCopyWith<_$StatusChangedImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$SearchChangedImplCopyWith<$Res> {
  factory _$$SearchChangedImplCopyWith(
    _$SearchChangedImpl value,
    $Res Function(_$SearchChangedImpl) then,
  ) = __$$SearchChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String search});
}

/// @nodoc
class __$$SearchChangedImplCopyWithImpl<$Res>
    extends _$OrderLoaderEventCopyWithImpl<$Res, _$SearchChangedImpl>
    implements _$$SearchChangedImplCopyWith<$Res> {
  __$$SearchChangedImplCopyWithImpl(
    _$SearchChangedImpl _value,
    $Res Function(_$SearchChangedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? search = null}) {
    return _then(
      _$SearchChangedImpl(
        null == search
            ? _value.search
            : search // ignore: cast_nullable_to_non_nullable
                  as String,
      ),
    );
  }
}

/// @nodoc

class _$SearchChangedImpl implements _SearchChanged {
  const _$SearchChangedImpl(this.search);

  @override
  final String search;

  @override
  String toString() {
    return 'OrderLoaderEvent.searchChanged(search: $search)';
  }

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

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

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$SearchChangedImplCopyWith<_$SearchChangedImpl> get copyWith =>
      __$$SearchChangedImplCopyWithImpl<_$SearchChangedImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String status) statusChanged,
    required TResult Function(String search) searchChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function(bool isRefresh) fetched,
  }) {
    return searchChanged(search);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String status)? statusChanged,
    TResult? Function(String search)? searchChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function(bool isRefresh)? fetched,
  }) {
    return searchChanged?.call(search);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String status)? statusChanged,
    TResult Function(String search)? searchChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function(bool isRefresh)? fetched,
    required TResult orElse(),
  }) {
    if (searchChanged != null) {
      return searchChanged(search);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_StatusChanged value) statusChanged,
    required TResult Function(_SearchChanged value) searchChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) {
    return searchChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_StatusChanged value)? statusChanged,
    TResult? Function(_SearchChanged value)? searchChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) {
    return searchChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_StatusChanged value)? statusChanged,
    TResult Function(_SearchChanged value)? searchChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) {
    if (searchChanged != null) {
      return searchChanged(this);
    }
    return orElse();
  }
}

abstract class _SearchChanged implements OrderLoaderEvent {
  const factory _SearchChanged(final String search) = _$SearchChangedImpl;

  String get search;

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$SearchChangedImplCopyWith<_$SearchChangedImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$OutletChangedImplCopyWith<$Res> {
  factory _$$OutletChangedImplCopyWith(
    _$OutletChangedImpl value,
    $Res Function(_$OutletChangedImpl) then,
  ) = __$$OutletChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String? outletId});
}

/// @nodoc
class __$$OutletChangedImplCopyWithImpl<$Res>
    extends _$OrderLoaderEventCopyWithImpl<$Res, _$OutletChangedImpl>
    implements _$$OutletChangedImplCopyWith<$Res> {
  __$$OutletChangedImplCopyWithImpl(
    _$OutletChangedImpl _value,
    $Res Function(_$OutletChangedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? outletId = freezed}) {
    return _then(
      _$OutletChangedImpl(
        freezed == outletId
            ? _value.outletId
            : outletId // ignore: cast_nullable_to_non_nullable
                  as String?,
      ),
    );
  }
}

/// @nodoc

class _$OutletChangedImpl implements _OutletChanged {
  const _$OutletChangedImpl(this.outletId);

  @override
  final String? outletId;

  @override
  String toString() {
    return 'OrderLoaderEvent.outletChanged(outletId: $outletId)';
  }

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

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

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$OutletChangedImplCopyWith<_$OutletChangedImpl> get copyWith =>
      __$$OutletChangedImplCopyWithImpl<_$OutletChangedImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String status) statusChanged,
    required TResult Function(String search) searchChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function(bool isRefresh) fetched,
  }) {
    return outletChanged(outletId);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String status)? statusChanged,
    TResult? Function(String search)? searchChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function(bool isRefresh)? fetched,
  }) {
    return outletChanged?.call(outletId);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String status)? statusChanged,
    TResult Function(String search)? searchChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function(bool isRefresh)? fetched,
    required TResult orElse(),
  }) {
    if (outletChanged != null) {
      return outletChanged(outletId);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_StatusChanged value) statusChanged,
    required TResult Function(_SearchChanged value) searchChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) {
    return outletChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_StatusChanged value)? statusChanged,
    TResult? Function(_SearchChanged value)? searchChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) {
    return outletChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_StatusChanged value)? statusChanged,
    TResult Function(_SearchChanged value)? searchChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) {
    if (outletChanged != null) {
      return outletChanged(this);
    }
    return orElse();
  }
}

abstract class _OutletChanged implements OrderLoaderEvent {
  const factory _OutletChanged(final String? outletId) = _$OutletChangedImpl;

  String? get outletId;

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$OutletChangedImplCopyWith<_$OutletChangedImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$$FetchedImplCopyWith<$Res> {
  factory _$$FetchedImplCopyWith(
    _$FetchedImpl value,
    $Res Function(_$FetchedImpl) then,
  ) = __$$FetchedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({bool isRefresh});
}

/// @nodoc
class __$$FetchedImplCopyWithImpl<$Res>
    extends _$OrderLoaderEventCopyWithImpl<$Res, _$FetchedImpl>
    implements _$$FetchedImplCopyWith<$Res> {
  __$$FetchedImplCopyWithImpl(
    _$FetchedImpl _value,
    $Res Function(_$FetchedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? isRefresh = null}) {
    return _then(
      _$FetchedImpl(
        isRefresh: null == isRefresh
            ? _value.isRefresh
            : isRefresh // ignore: cast_nullable_to_non_nullable
                  as bool,
      ),
    );
  }
}

/// @nodoc

class _$FetchedImpl implements _Fetched {
  const _$FetchedImpl({this.isRefresh = false});

  @override
  @JsonKey()
  final bool isRefresh;

  @override
  String toString() {
    return 'OrderLoaderEvent.fetched(isRefresh: $isRefresh)';
  }

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

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

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$FetchedImplCopyWith<_$FetchedImpl> get copyWith =>
      __$$FetchedImplCopyWithImpl<_$FetchedImpl>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String status) statusChanged,
    required TResult Function(String search) searchChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function(bool isRefresh) fetched,
  }) {
    return fetched(isRefresh);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String status)? statusChanged,
    TResult? Function(String search)? searchChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function(bool isRefresh)? fetched,
  }) {
    return fetched?.call(isRefresh);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String status)? statusChanged,
    TResult Function(String search)? searchChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function(bool isRefresh)? fetched,
    required TResult orElse(),
  }) {
    if (fetched != null) {
      return fetched(isRefresh);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_StatusChanged value) statusChanged,
    required TResult Function(_SearchChanged value) searchChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) {
    return fetched(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_StatusChanged value)? statusChanged,
    TResult? Function(_SearchChanged value)? searchChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) {
    return fetched?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_StatusChanged value)? statusChanged,
    TResult Function(_SearchChanged value)? searchChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) {
    if (fetched != null) {
      return fetched(this);
    }
    return orElse();
  }
}

abstract class _Fetched implements OrderLoaderEvent {
  const factory _Fetched({final bool isRefresh}) = _$FetchedImpl;

  bool get isRefresh;

  /// Create a copy of OrderLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$FetchedImplCopyWith<_$FetchedImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
mixin _$OrderLoaderState {
  List<Order> get orders => throw _privateConstructorUsedError;
  Option<OrderFailure> get failureOptionOrder =>
      throw _privateConstructorUsedError;
  String get status => throw _privateConstructorUsedError;
  String? get search => throw _privateConstructorUsedError;
  String? get outletId => throw _privateConstructorUsedError;
  bool get isFetching => throw _privateConstructorUsedError;
  bool get hasReachedMax => throw _privateConstructorUsedError;
  int get page => throw _privateConstructorUsedError;
  DateTime get dateFrom => throw _privateConstructorUsedError;
  DateTime get dateTo => throw _privateConstructorUsedError;

  /// Create a copy of OrderLoaderState
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $OrderLoaderStateCopyWith<OrderLoaderState> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $OrderLoaderStateCopyWith<$Res> {
  factory $OrderLoaderStateCopyWith(
    OrderLoaderState value,
    $Res Function(OrderLoaderState) then,
  ) = _$OrderLoaderStateCopyWithImpl<$Res, OrderLoaderState>;
  @useResult
  $Res call({
    List<Order> orders,
    Option<OrderFailure> failureOptionOrder,
    String status,
    String? search,
    String? outletId,
    bool isFetching,
    bool hasReachedMax,
    int page,
    DateTime dateFrom,
    DateTime dateTo,
  });
}

/// @nodoc
class _$OrderLoaderStateCopyWithImpl<$Res, $Val extends OrderLoaderState>
    implements $OrderLoaderStateCopyWith<$Res> {
  _$OrderLoaderStateCopyWithImpl(this._value, this._then);

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

  /// Create a copy of OrderLoaderState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? orders = null,
    Object? failureOptionOrder = null,
    Object? status = null,
    Object? search = freezed,
    Object? outletId = freezed,
    Object? isFetching = null,
    Object? hasReachedMax = null,
    Object? page = null,
    Object? dateFrom = null,
    Object? dateTo = null,
  }) {
    return _then(
      _value.copyWith(
            orders: null == orders
                ? _value.orders
                : orders // ignore: cast_nullable_to_non_nullable
                      as List<Order>,
            failureOptionOrder: null == failureOptionOrder
                ? _value.failureOptionOrder
                : failureOptionOrder // ignore: cast_nullable_to_non_nullable
                      as Option<OrderFailure>,
            status: null == status
                ? _value.status
                : status // ignore: cast_nullable_to_non_nullable
                      as String,
            search: freezed == search
                ? _value.search
                : search // ignore: cast_nullable_to_non_nullable
                      as String?,
            outletId: freezed == outletId
                ? _value.outletId
                : outletId // ignore: cast_nullable_to_non_nullable
                      as String?,
            isFetching: null == isFetching
                ? _value.isFetching
                : isFetching // ignore: cast_nullable_to_non_nullable
                      as bool,
            hasReachedMax: null == hasReachedMax
                ? _value.hasReachedMax
                : hasReachedMax // ignore: cast_nullable_to_non_nullable
                      as bool,
            page: null == page
                ? _value.page
                : page // ignore: cast_nullable_to_non_nullable
                      as int,
            dateFrom: null == dateFrom
                ? _value.dateFrom
                : dateFrom // ignore: cast_nullable_to_non_nullable
                      as DateTime,
            dateTo: null == dateTo
                ? _value.dateTo
                : dateTo // ignore: cast_nullable_to_non_nullable
                      as DateTime,
          )
          as $Val,
    );
  }
}

/// @nodoc
abstract class _$$OrderLoaderStateImplCopyWith<$Res>
    implements $OrderLoaderStateCopyWith<$Res> {
  factory _$$OrderLoaderStateImplCopyWith(
    _$OrderLoaderStateImpl value,
    $Res Function(_$OrderLoaderStateImpl) then,
  ) = __$$OrderLoaderStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({
    List<Order> orders,
    Option<OrderFailure> failureOptionOrder,
    String status,
    String? search,
    String? outletId,
    bool isFetching,
    bool hasReachedMax,
    int page,
    DateTime dateFrom,
    DateTime dateTo,
  });
}

/// @nodoc
class __$$OrderLoaderStateImplCopyWithImpl<$Res>
    extends _$OrderLoaderStateCopyWithImpl<$Res, _$OrderLoaderStateImpl>
    implements _$$OrderLoaderStateImplCopyWith<$Res> {
  __$$OrderLoaderStateImplCopyWithImpl(
    _$OrderLoaderStateImpl _value,
    $Res Function(_$OrderLoaderStateImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of OrderLoaderState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? orders = null,
    Object? failureOptionOrder = null,
    Object? status = null,
    Object? search = freezed,
    Object? outletId = freezed,
    Object? isFetching = null,
    Object? hasReachedMax = null,
    Object? page = null,
    Object? dateFrom = null,
    Object? dateTo = null,
  }) {
    return _then(
      _$OrderLoaderStateImpl(
        orders: null == orders
            ? _value._orders
            : orders // ignore: cast_nullable_to_non_nullable
                  as List<Order>,
        failureOptionOrder: null == failureOptionOrder
            ? _value.failureOptionOrder
            : failureOptionOrder // ignore: cast_nullable_to_non_nullable
                  as Option<OrderFailure>,
        status: null == status
            ? _value.status
            : status // ignore: cast_nullable_to_non_nullable
                  as String,
        search: freezed == search
            ? _value.search
            : search // ignore: cast_nullable_to_non_nullable
                  as String?,
        outletId: freezed == outletId
            ? _value.outletId
            : outletId // ignore: cast_nullable_to_non_nullable
                  as String?,
        isFetching: null == isFetching
            ? _value.isFetching
            : isFetching // ignore: cast_nullable_to_non_nullable
                  as bool,
        hasReachedMax: null == hasReachedMax
            ? _value.hasReachedMax
            : hasReachedMax // ignore: cast_nullable_to_non_nullable
                  as bool,
        page: null == page
            ? _value.page
            : page // ignore: cast_nullable_to_non_nullable
                  as int,
        dateFrom: null == dateFrom
            ? _value.dateFrom
            : dateFrom // ignore: cast_nullable_to_non_nullable
                  as DateTime,
        dateTo: null == dateTo
            ? _value.dateTo
            : dateTo // ignore: cast_nullable_to_non_nullable
                  as DateTime,
      ),
    );
  }
}

/// @nodoc

class _$OrderLoaderStateImpl implements _OrderLoaderState {
  const _$OrderLoaderStateImpl({
    required final List<Order> orders,
    required this.failureOptionOrder,
    required this.status,
    this.search,
    this.outletId,
    this.isFetching = false,
    this.hasReachedMax = false,
    this.page = 1,
    required this.dateFrom,
    required this.dateTo,
  }) : _orders = orders;

  final List<Order> _orders;
  @override
  List<Order> get orders {
    if (_orders is EqualUnmodifiableListView) return _orders;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_orders);
  }

  @override
  final Option<OrderFailure> failureOptionOrder;
  @override
  final String status;
  @override
  final String? search;
  @override
  final String? outletId;
  @override
  @JsonKey()
  final bool isFetching;
  @override
  @JsonKey()
  final bool hasReachedMax;
  @override
  @JsonKey()
  final int page;
  @override
  final DateTime dateFrom;
  @override
  final DateTime dateTo;

  @override
  String toString() {
    return 'OrderLoaderState(orders: $orders, failureOptionOrder: $failureOptionOrder, status: $status, search: $search, outletId: $outletId, isFetching: $isFetching, hasReachedMax: $hasReachedMax, page: $page, dateFrom: $dateFrom, dateTo: $dateTo)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$OrderLoaderStateImpl &&
            const DeepCollectionEquality().equals(other._orders, _orders) &&
            (identical(other.failureOptionOrder, failureOptionOrder) ||
                other.failureOptionOrder == failureOptionOrder) &&
            (identical(other.status, status) || other.status == status) &&
            (identical(other.search, search) || other.search == search) &&
            (identical(other.outletId, outletId) ||
                other.outletId == outletId) &&
            (identical(other.isFetching, isFetching) ||
                other.isFetching == isFetching) &&
            (identical(other.hasReachedMax, hasReachedMax) ||
                other.hasReachedMax == hasReachedMax) &&
            (identical(other.page, page) || other.page == page) &&
            (identical(other.dateFrom, dateFrom) ||
                other.dateFrom == dateFrom) &&
            (identical(other.dateTo, dateTo) || other.dateTo == dateTo));
  }

  @override
  int get hashCode => Object.hash(
    runtimeType,
    const DeepCollectionEquality().hash(_orders),
    failureOptionOrder,
    status,
    search,
    outletId,
    isFetching,
    hasReachedMax,
    page,
    dateFrom,
    dateTo,
  );

  /// Create a copy of OrderLoaderState
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$OrderLoaderStateImplCopyWith<_$OrderLoaderStateImpl> get copyWith =>
      __$$OrderLoaderStateImplCopyWithImpl<_$OrderLoaderStateImpl>(
        this,
        _$identity,
      );
}

abstract class _OrderLoaderState implements OrderLoaderState {
  const factory _OrderLoaderState({
    required final List<Order> orders,
    required final Option<OrderFailure> failureOptionOrder,
    required final String status,
    final String? search,
    final String? outletId,
    final bool isFetching,
    final bool hasReachedMax,
    final int page,
    required final DateTime dateFrom,
    required final DateTime dateTo,
  }) = _$OrderLoaderStateImpl;

  @override
  List<Order> get orders;
  @override
  Option<OrderFailure> get failureOptionOrder;
  @override
  String get status;
  @override
  String? get search;
  @override
  String? get outletId;
  @override
  bool get isFetching;
  @override
  bool get hasReachedMax;
  @override
  int get page;
  @override
  DateTime get dateFrom;
  @override
  DateTime get dateTo;

  /// Create a copy of OrderLoaderState
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$OrderLoaderStateImplCopyWith<_$OrderLoaderStateImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
