// 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 'report_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 _$ReportEvent {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(int index, String title) menuChanged,
    required TResult Function(DateTime startDate, DateTime endDate) dateChanged,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(int index, String title)? menuChanged,
    TResult? Function(DateTime startDate, DateTime endDate)? dateChanged,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(int index, String title)? menuChanged,
    TResult Function(DateTime startDate, DateTime endDate)? dateChanged,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_MenuChanged value) menuChanged,
    required TResult Function(_DateChanged value) dateChanged,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_MenuChanged value)? menuChanged,
    TResult? Function(_DateChanged value)? dateChanged,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_MenuChanged value)? menuChanged,
    TResult Function(_DateChanged value)? dateChanged,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ReportEventCopyWith<$Res> {
  factory $ReportEventCopyWith(
    ReportEvent value,
    $Res Function(ReportEvent) then,
  ) = _$ReportEventCopyWithImpl<$Res, ReportEvent>;
}

/// @nodoc
class _$ReportEventCopyWithImpl<$Res, $Val extends ReportEvent>
    implements $ReportEventCopyWith<$Res> {
  _$ReportEventCopyWithImpl(this._value, this._then);

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

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

/// @nodoc
abstract class _$$MenuChangedImplCopyWith<$Res> {
  factory _$$MenuChangedImplCopyWith(
    _$MenuChangedImpl value,
    $Res Function(_$MenuChangedImpl) then,
  ) = __$$MenuChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({int index, String title});
}

/// @nodoc
class __$$MenuChangedImplCopyWithImpl<$Res>
    extends _$ReportEventCopyWithImpl<$Res, _$MenuChangedImpl>
    implements _$$MenuChangedImplCopyWith<$Res> {
  __$$MenuChangedImplCopyWithImpl(
    _$MenuChangedImpl _value,
    $Res Function(_$MenuChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$MenuChangedImpl implements _MenuChanged {
  const _$MenuChangedImpl({required this.index, required this.title});

  @override
  final int index;
  @override
  final String title;

  @override
  String toString() {
    return 'ReportEvent.menuChanged(index: $index, title: $title)';
  }

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

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

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(int index, String title) menuChanged,
    required TResult Function(DateTime startDate, DateTime endDate) dateChanged,
  }) {
    return menuChanged(index, title);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(int index, String title)? menuChanged,
    TResult? Function(DateTime startDate, DateTime endDate)? dateChanged,
  }) {
    return menuChanged?.call(index, title);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(int index, String title)? menuChanged,
    TResult Function(DateTime startDate, DateTime endDate)? dateChanged,
    required TResult orElse(),
  }) {
    if (menuChanged != null) {
      return menuChanged(index, title);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_MenuChanged value) menuChanged,
    required TResult Function(_DateChanged value) dateChanged,
  }) {
    return menuChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_MenuChanged value)? menuChanged,
    TResult? Function(_DateChanged value)? dateChanged,
  }) {
    return menuChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_MenuChanged value)? menuChanged,
    TResult Function(_DateChanged value)? dateChanged,
    required TResult orElse(),
  }) {
    if (menuChanged != null) {
      return menuChanged(this);
    }
    return orElse();
  }
}

abstract class _MenuChanged implements ReportEvent {
  const factory _MenuChanged({
    required final int index,
    required final String title,
  }) = _$MenuChangedImpl;

  int get index;
  String get title;

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

/// @nodoc
abstract class _$$DateChangedImplCopyWith<$Res> {
  factory _$$DateChangedImplCopyWith(
    _$DateChangedImpl value,
    $Res Function(_$DateChangedImpl) then,
  ) = __$$DateChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({DateTime startDate, DateTime endDate});
}

/// @nodoc
class __$$DateChangedImplCopyWithImpl<$Res>
    extends _$ReportEventCopyWithImpl<$Res, _$DateChangedImpl>
    implements _$$DateChangedImplCopyWith<$Res> {
  __$$DateChangedImplCopyWithImpl(
    _$DateChangedImpl _value,
    $Res Function(_$DateChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$DateChangedImpl implements _DateChanged {
  const _$DateChangedImpl({required this.startDate, required this.endDate});

  @override
  final DateTime startDate;
  @override
  final DateTime endDate;

  @override
  String toString() {
    return 'ReportEvent.dateChanged(startDate: $startDate, endDate: $endDate)';
  }

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

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

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(int index, String title) menuChanged,
    required TResult Function(DateTime startDate, DateTime endDate) dateChanged,
  }) {
    return dateChanged(startDate, endDate);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(int index, String title)? menuChanged,
    TResult? Function(DateTime startDate, DateTime endDate)? dateChanged,
  }) {
    return dateChanged?.call(startDate, endDate);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(int index, String title)? menuChanged,
    TResult Function(DateTime startDate, DateTime endDate)? dateChanged,
    required TResult orElse(),
  }) {
    if (dateChanged != null) {
      return dateChanged(startDate, endDate);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_MenuChanged value) menuChanged,
    required TResult Function(_DateChanged value) dateChanged,
  }) {
    return dateChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_MenuChanged value)? menuChanged,
    TResult? Function(_DateChanged value)? dateChanged,
  }) {
    return dateChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_MenuChanged value)? menuChanged,
    TResult Function(_DateChanged value)? dateChanged,
    required TResult orElse(),
  }) {
    if (dateChanged != null) {
      return dateChanged(this);
    }
    return orElse();
  }
}

abstract class _DateChanged implements ReportEvent {
  const factory _DateChanged({
    required final DateTime startDate,
    required final DateTime endDate,
  }) = _$DateChangedImpl;

  DateTime get startDate;
  DateTime get endDate;

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

/// @nodoc
mixin _$ReportState {
  String get title => throw _privateConstructorUsedError;
  DateTime get startDate => throw _privateConstructorUsedError;
  DateTime get endDate => throw _privateConstructorUsedError;
  String get rangeDateFormatted => throw _privateConstructorUsedError;
  int get selectedMenu => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $ReportStateCopyWith<$Res> {
  factory $ReportStateCopyWith(
    ReportState value,
    $Res Function(ReportState) then,
  ) = _$ReportStateCopyWithImpl<$Res, ReportState>;
  @useResult
  $Res call({
    String title,
    DateTime startDate,
    DateTime endDate,
    String rangeDateFormatted,
    int selectedMenu,
  });
}

/// @nodoc
class _$ReportStateCopyWithImpl<$Res, $Val extends ReportState>
    implements $ReportStateCopyWith<$Res> {
  _$ReportStateCopyWithImpl(this._value, this._then);

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

  /// Create a copy of ReportState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? title = null,
    Object? startDate = null,
    Object? endDate = null,
    Object? rangeDateFormatted = null,
    Object? selectedMenu = null,
  }) {
    return _then(
      _value.copyWith(
            title: null == title
                ? _value.title
                : title // ignore: cast_nullable_to_non_nullable
                      as String,
            startDate: null == startDate
                ? _value.startDate
                : startDate // ignore: cast_nullable_to_non_nullable
                      as DateTime,
            endDate: null == endDate
                ? _value.endDate
                : endDate // ignore: cast_nullable_to_non_nullable
                      as DateTime,
            rangeDateFormatted: null == rangeDateFormatted
                ? _value.rangeDateFormatted
                : rangeDateFormatted // ignore: cast_nullable_to_non_nullable
                      as String,
            selectedMenu: null == selectedMenu
                ? _value.selectedMenu
                : selectedMenu // ignore: cast_nullable_to_non_nullable
                      as int,
          )
          as $Val,
    );
  }
}

/// @nodoc
abstract class _$$ReportStateImplCopyWith<$Res>
    implements $ReportStateCopyWith<$Res> {
  factory _$$ReportStateImplCopyWith(
    _$ReportStateImpl value,
    $Res Function(_$ReportStateImpl) then,
  ) = __$$ReportStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({
    String title,
    DateTime startDate,
    DateTime endDate,
    String rangeDateFormatted,
    int selectedMenu,
  });
}

/// @nodoc
class __$$ReportStateImplCopyWithImpl<$Res>
    extends _$ReportStateCopyWithImpl<$Res, _$ReportStateImpl>
    implements _$$ReportStateImplCopyWith<$Res> {
  __$$ReportStateImplCopyWithImpl(
    _$ReportStateImpl _value,
    $Res Function(_$ReportStateImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of ReportState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? title = null,
    Object? startDate = null,
    Object? endDate = null,
    Object? rangeDateFormatted = null,
    Object? selectedMenu = null,
  }) {
    return _then(
      _$ReportStateImpl(
        title: null == title
            ? _value.title
            : title // ignore: cast_nullable_to_non_nullable
                  as String,
        startDate: null == startDate
            ? _value.startDate
            : startDate // ignore: cast_nullable_to_non_nullable
                  as DateTime,
        endDate: null == endDate
            ? _value.endDate
            : endDate // ignore: cast_nullable_to_non_nullable
                  as DateTime,
        rangeDateFormatted: null == rangeDateFormatted
            ? _value.rangeDateFormatted
            : rangeDateFormatted // ignore: cast_nullable_to_non_nullable
                  as String,
        selectedMenu: null == selectedMenu
            ? _value.selectedMenu
            : selectedMenu // ignore: cast_nullable_to_non_nullable
                  as int,
      ),
    );
  }
}

/// @nodoc

class _$ReportStateImpl implements _ReportState {
  _$ReportStateImpl({
    required this.title,
    required this.startDate,
    required this.endDate,
    required this.rangeDateFormatted,
    this.selectedMenu = 0,
  });

  @override
  final String title;
  @override
  final DateTime startDate;
  @override
  final DateTime endDate;
  @override
  final String rangeDateFormatted;
  @override
  @JsonKey()
  final int selectedMenu;

  @override
  String toString() {
    return 'ReportState(title: $title, startDate: $startDate, endDate: $endDate, rangeDateFormatted: $rangeDateFormatted, selectedMenu: $selectedMenu)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$ReportStateImpl &&
            (identical(other.title, title) || other.title == title) &&
            (identical(other.startDate, startDate) ||
                other.startDate == startDate) &&
            (identical(other.endDate, endDate) || other.endDate == endDate) &&
            (identical(other.rangeDateFormatted, rangeDateFormatted) ||
                other.rangeDateFormatted == rangeDateFormatted) &&
            (identical(other.selectedMenu, selectedMenu) ||
                other.selectedMenu == selectedMenu));
  }

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

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

abstract class _ReportState implements ReportState {
  factory _ReportState({
    required final String title,
    required final DateTime startDate,
    required final DateTime endDate,
    required final String rangeDateFormatted,
    final int selectedMenu,
  }) = _$ReportStateImpl;

  @override
  String get title;
  @override
  DateTime get startDate;
  @override
  DateTime get endDate;
  @override
  String get rangeDateFormatted;
  @override
  int get selectedMenu;

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