123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492 |
- // GENERATED CODE - DO NOT MODIFY BY HAND
- // 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
- part of 'edit_pannel_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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
- /// @nodoc
- class _$EditPannelEventTearOff {
- const _$EditPannelEventTearOff();
- _StartEdit startEdit(EditPannelContext context) {
- return _StartEdit(
- context,
- );
- }
- _EndEdit endEdit(EditPannelContext context) {
- return _EndEdit(
- context,
- );
- }
- }
- /// @nodoc
- const $EditPannelEvent = _$EditPannelEventTearOff();
- /// @nodoc
- mixin _$EditPannelEvent {
- EditPannelContext get context => throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function(EditPannelContext context) startEdit,
- required TResult Function(EditPannelContext context) endEdit,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function(EditPannelContext context)? startEdit,
- TResult Function(EditPannelContext context)? endEdit,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(_StartEdit value) startEdit,
- required TResult Function(_EndEdit value) endEdit,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(_StartEdit value)? startEdit,
- TResult Function(_EndEdit value)? endEdit,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $EditPannelEventCopyWith<EditPannelEvent> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $EditPannelEventCopyWith<$Res> {
- factory $EditPannelEventCopyWith(
- EditPannelEvent value, $Res Function(EditPannelEvent) then) =
- _$EditPannelEventCopyWithImpl<$Res>;
- $Res call({EditPannelContext context});
- }
- /// @nodoc
- class _$EditPannelEventCopyWithImpl<$Res>
- implements $EditPannelEventCopyWith<$Res> {
- _$EditPannelEventCopyWithImpl(this._value, this._then);
- final EditPannelEvent _value;
- // ignore: unused_field
- final $Res Function(EditPannelEvent) _then;
- @override
- $Res call({
- Object? context = freezed,
- }) {
- return _then(_value.copyWith(
- context: context == freezed
- ? _value.context
- : context // ignore: cast_nullable_to_non_nullable
- as EditPannelContext,
- ));
- }
- }
- /// @nodoc
- abstract class _$StartEditCopyWith<$Res>
- implements $EditPannelEventCopyWith<$Res> {
- factory _$StartEditCopyWith(
- _StartEdit value, $Res Function(_StartEdit) then) =
- __$StartEditCopyWithImpl<$Res>;
- @override
- $Res call({EditPannelContext context});
- }
- /// @nodoc
- class __$StartEditCopyWithImpl<$Res> extends _$EditPannelEventCopyWithImpl<$Res>
- implements _$StartEditCopyWith<$Res> {
- __$StartEditCopyWithImpl(_StartEdit _value, $Res Function(_StartEdit) _then)
- : super(_value, (v) => _then(v as _StartEdit));
- @override
- _StartEdit get _value => super._value as _StartEdit;
- @override
- $Res call({
- Object? context = freezed,
- }) {
- return _then(_StartEdit(
- context == freezed
- ? _value.context
- : context // ignore: cast_nullable_to_non_nullable
- as EditPannelContext,
- ));
- }
- }
- /// @nodoc
- class _$_StartEdit implements _StartEdit {
- const _$_StartEdit(this.context);
- @override
- final EditPannelContext context;
- @override
- String toString() {
- return 'EditPannelEvent.startEdit(context: $context)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is _StartEdit &&
- (identical(other.context, context) ||
- const DeepCollectionEquality().equals(other.context, context)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^ const DeepCollectionEquality().hash(context);
- @JsonKey(ignore: true)
- @override
- _$StartEditCopyWith<_StartEdit> get copyWith =>
- __$StartEditCopyWithImpl<_StartEdit>(this, _$identity);
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function(EditPannelContext context) startEdit,
- required TResult Function(EditPannelContext context) endEdit,
- }) {
- return startEdit(context);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function(EditPannelContext context)? startEdit,
- TResult Function(EditPannelContext context)? endEdit,
- required TResult orElse(),
- }) {
- if (startEdit != null) {
- return startEdit(context);
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(_StartEdit value) startEdit,
- required TResult Function(_EndEdit value) endEdit,
- }) {
- return startEdit(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(_StartEdit value)? startEdit,
- TResult Function(_EndEdit value)? endEdit,
- required TResult orElse(),
- }) {
- if (startEdit != null) {
- return startEdit(this);
- }
- return orElse();
- }
- }
- abstract class _StartEdit implements EditPannelEvent {
- const factory _StartEdit(EditPannelContext context) = _$_StartEdit;
- @override
- EditPannelContext get context => throw _privateConstructorUsedError;
- @override
- @JsonKey(ignore: true)
- _$StartEditCopyWith<_StartEdit> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class _$EndEditCopyWith<$Res>
- implements $EditPannelEventCopyWith<$Res> {
- factory _$EndEditCopyWith(_EndEdit value, $Res Function(_EndEdit) then) =
- __$EndEditCopyWithImpl<$Res>;
- @override
- $Res call({EditPannelContext context});
- }
- /// @nodoc
- class __$EndEditCopyWithImpl<$Res> extends _$EditPannelEventCopyWithImpl<$Res>
- implements _$EndEditCopyWith<$Res> {
- __$EndEditCopyWithImpl(_EndEdit _value, $Res Function(_EndEdit) _then)
- : super(_value, (v) => _then(v as _EndEdit));
- @override
- _EndEdit get _value => super._value as _EndEdit;
- @override
- $Res call({
- Object? context = freezed,
- }) {
- return _then(_EndEdit(
- context == freezed
- ? _value.context
- : context // ignore: cast_nullable_to_non_nullable
- as EditPannelContext,
- ));
- }
- }
- /// @nodoc
- class _$_EndEdit implements _EndEdit {
- const _$_EndEdit(this.context);
- @override
- final EditPannelContext context;
- @override
- String toString() {
- return 'EditPannelEvent.endEdit(context: $context)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is _EndEdit &&
- (identical(other.context, context) ||
- const DeepCollectionEquality().equals(other.context, context)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^ const DeepCollectionEquality().hash(context);
- @JsonKey(ignore: true)
- @override
- _$EndEditCopyWith<_EndEdit> get copyWith =>
- __$EndEditCopyWithImpl<_EndEdit>(this, _$identity);
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function(EditPannelContext context) startEdit,
- required TResult Function(EditPannelContext context) endEdit,
- }) {
- return endEdit(context);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function(EditPannelContext context)? startEdit,
- TResult Function(EditPannelContext context)? endEdit,
- required TResult orElse(),
- }) {
- if (endEdit != null) {
- return endEdit(context);
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(_StartEdit value) startEdit,
- required TResult Function(_EndEdit value) endEdit,
- }) {
- return endEdit(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(_StartEdit value)? startEdit,
- TResult Function(_EndEdit value)? endEdit,
- required TResult orElse(),
- }) {
- if (endEdit != null) {
- return endEdit(this);
- }
- return orElse();
- }
- }
- abstract class _EndEdit implements EditPannelEvent {
- const factory _EndEdit(EditPannelContext context) = _$_EndEdit;
- @override
- EditPannelContext get context => throw _privateConstructorUsedError;
- @override
- @JsonKey(ignore: true)
- _$EndEditCopyWith<_EndEdit> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- class _$EditPannelStateTearOff {
- const _$EditPannelStateTearOff();
- _EditPannelState call(
- {required bool isEditing,
- required Option<EditPannelContext> editContext}) {
- return _EditPannelState(
- isEditing: isEditing,
- editContext: editContext,
- );
- }
- }
- /// @nodoc
- const $EditPannelState = _$EditPannelStateTearOff();
- /// @nodoc
- mixin _$EditPannelState {
- bool get isEditing => throw _privateConstructorUsedError;
- Option<EditPannelContext> get editContext =>
- throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $EditPannelStateCopyWith<EditPannelState> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $EditPannelStateCopyWith<$Res> {
- factory $EditPannelStateCopyWith(
- EditPannelState value, $Res Function(EditPannelState) then) =
- _$EditPannelStateCopyWithImpl<$Res>;
- $Res call({bool isEditing, Option<EditPannelContext> editContext});
- }
- /// @nodoc
- class _$EditPannelStateCopyWithImpl<$Res>
- implements $EditPannelStateCopyWith<$Res> {
- _$EditPannelStateCopyWithImpl(this._value, this._then);
- final EditPannelState _value;
- // ignore: unused_field
- final $Res Function(EditPannelState) _then;
- @override
- $Res call({
- Object? isEditing = freezed,
- Object? editContext = freezed,
- }) {
- return _then(_value.copyWith(
- isEditing: isEditing == freezed
- ? _value.isEditing
- : isEditing // ignore: cast_nullable_to_non_nullable
- as bool,
- editContext: editContext == freezed
- ? _value.editContext
- : editContext // ignore: cast_nullable_to_non_nullable
- as Option<EditPannelContext>,
- ));
- }
- }
- /// @nodoc
- abstract class _$EditPannelStateCopyWith<$Res>
- implements $EditPannelStateCopyWith<$Res> {
- factory _$EditPannelStateCopyWith(
- _EditPannelState value, $Res Function(_EditPannelState) then) =
- __$EditPannelStateCopyWithImpl<$Res>;
- @override
- $Res call({bool isEditing, Option<EditPannelContext> editContext});
- }
- /// @nodoc
- class __$EditPannelStateCopyWithImpl<$Res>
- extends _$EditPannelStateCopyWithImpl<$Res>
- implements _$EditPannelStateCopyWith<$Res> {
- __$EditPannelStateCopyWithImpl(
- _EditPannelState _value, $Res Function(_EditPannelState) _then)
- : super(_value, (v) => _then(v as _EditPannelState));
- @override
- _EditPannelState get _value => super._value as _EditPannelState;
- @override
- $Res call({
- Object? isEditing = freezed,
- Object? editContext = freezed,
- }) {
- return _then(_EditPannelState(
- isEditing: isEditing == freezed
- ? _value.isEditing
- : isEditing // ignore: cast_nullable_to_non_nullable
- as bool,
- editContext: editContext == freezed
- ? _value.editContext
- : editContext // ignore: cast_nullable_to_non_nullable
- as Option<EditPannelContext>,
- ));
- }
- }
- /// @nodoc
- class _$_EditPannelState implements _EditPannelState {
- const _$_EditPannelState(
- {required this.isEditing, required this.editContext});
- @override
- final bool isEditing;
- @override
- final Option<EditPannelContext> editContext;
- @override
- String toString() {
- return 'EditPannelState(isEditing: $isEditing, editContext: $editContext)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is _EditPannelState &&
- (identical(other.isEditing, isEditing) ||
- const DeepCollectionEquality()
- .equals(other.isEditing, isEditing)) &&
- (identical(other.editContext, editContext) ||
- const DeepCollectionEquality()
- .equals(other.editContext, editContext)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^
- const DeepCollectionEquality().hash(isEditing) ^
- const DeepCollectionEquality().hash(editContext);
- @JsonKey(ignore: true)
- @override
- _$EditPannelStateCopyWith<_EditPannelState> get copyWith =>
- __$EditPannelStateCopyWithImpl<_EditPannelState>(this, _$identity);
- }
- abstract class _EditPannelState implements EditPannelState {
- const factory _EditPannelState(
- {required bool isEditing,
- required Option<EditPannelContext> editContext}) = _$_EditPannelState;
- @override
- bool get isEditing => throw _privateConstructorUsedError;
- @override
- Option<EditPannelContext> get editContext =>
- throw _privateConstructorUsedError;
- @override
- @JsonKey(ignore: true)
- _$EditPannelStateCopyWith<_EditPannelState> get copyWith =>
- throw _privateConstructorUsedError;
- }
|