123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- // 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 'page_stack_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 _$PageStackEventTearOff {
- const _$PageStackEventTearOff();
- NewPageContext setContext(PageContext newContext) {
- return NewPageContext(
- newContext,
- );
- }
- }
- /// @nodoc
- const $PageStackEvent = _$PageStackEventTearOff();
- /// @nodoc
- mixin _$PageStackEvent {
- PageContext get newContext => throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function(PageContext newContext) setContext,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function(PageContext newContext)? setContext,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(NewPageContext value) setContext,
- }) =>
- throw _privateConstructorUsedError;
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(NewPageContext value)? setContext,
- required TResult orElse(),
- }) =>
- throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $PageStackEventCopyWith<PageStackEvent> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $PageStackEventCopyWith<$Res> {
- factory $PageStackEventCopyWith(
- PageStackEvent value, $Res Function(PageStackEvent) then) =
- _$PageStackEventCopyWithImpl<$Res>;
- $Res call({PageContext newContext});
- }
- /// @nodoc
- class _$PageStackEventCopyWithImpl<$Res>
- implements $PageStackEventCopyWith<$Res> {
- _$PageStackEventCopyWithImpl(this._value, this._then);
- final PageStackEvent _value;
- // ignore: unused_field
- final $Res Function(PageStackEvent) _then;
- @override
- $Res call({
- Object? newContext = freezed,
- }) {
- return _then(_value.copyWith(
- newContext: newContext == freezed
- ? _value.newContext
- : newContext // ignore: cast_nullable_to_non_nullable
- as PageContext,
- ));
- }
- }
- /// @nodoc
- abstract class $NewPageContextCopyWith<$Res>
- implements $PageStackEventCopyWith<$Res> {
- factory $NewPageContextCopyWith(
- NewPageContext value, $Res Function(NewPageContext) then) =
- _$NewPageContextCopyWithImpl<$Res>;
- @override
- $Res call({PageContext newContext});
- }
- /// @nodoc
- class _$NewPageContextCopyWithImpl<$Res>
- extends _$PageStackEventCopyWithImpl<$Res>
- implements $NewPageContextCopyWith<$Res> {
- _$NewPageContextCopyWithImpl(
- NewPageContext _value, $Res Function(NewPageContext) _then)
- : super(_value, (v) => _then(v as NewPageContext));
- @override
- NewPageContext get _value => super._value as NewPageContext;
- @override
- $Res call({
- Object? newContext = freezed,
- }) {
- return _then(NewPageContext(
- newContext == freezed
- ? _value.newContext
- : newContext // ignore: cast_nullable_to_non_nullable
- as PageContext,
- ));
- }
- }
- /// @nodoc
- class _$NewPageContext implements NewPageContext {
- const _$NewPageContext(this.newContext);
- @override
- final PageContext newContext;
- @override
- String toString() {
- return 'PageStackEvent.setContext(newContext: $newContext)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is NewPageContext &&
- (identical(other.newContext, newContext) ||
- const DeepCollectionEquality()
- .equals(other.newContext, newContext)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^ const DeepCollectionEquality().hash(newContext);
- @JsonKey(ignore: true)
- @override
- $NewPageContextCopyWith<NewPageContext> get copyWith =>
- _$NewPageContextCopyWithImpl<NewPageContext>(this, _$identity);
- @override
- @optionalTypeArgs
- TResult when<TResult extends Object?>({
- required TResult Function(PageContext newContext) setContext,
- }) {
- return setContext(newContext);
- }
- @override
- @optionalTypeArgs
- TResult maybeWhen<TResult extends Object?>({
- TResult Function(PageContext newContext)? setContext,
- required TResult orElse(),
- }) {
- if (setContext != null) {
- return setContext(newContext);
- }
- return orElse();
- }
- @override
- @optionalTypeArgs
- TResult map<TResult extends Object?>({
- required TResult Function(NewPageContext value) setContext,
- }) {
- return setContext(this);
- }
- @override
- @optionalTypeArgs
- TResult maybeMap<TResult extends Object?>({
- TResult Function(NewPageContext value)? setContext,
- required TResult orElse(),
- }) {
- if (setContext != null) {
- return setContext(this);
- }
- return orElse();
- }
- }
- abstract class NewPageContext implements PageStackEvent {
- const factory NewPageContext(PageContext newContext) = _$NewPageContext;
- @override
- PageContext get newContext => throw _privateConstructorUsedError;
- @override
- @JsonKey(ignore: true)
- $NewPageContextCopyWith<NewPageContext> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- class _$PageStackStateTearOff {
- const _$PageStackStateTearOff();
- _PageStackState call({required PageContext pageContext}) {
- return _PageStackState(
- pageContext: pageContext,
- );
- }
- }
- /// @nodoc
- const $PageStackState = _$PageStackStateTearOff();
- /// @nodoc
- mixin _$PageStackState {
- PageContext get pageContext => throw _privateConstructorUsedError;
- @JsonKey(ignore: true)
- $PageStackStateCopyWith<PageStackState> get copyWith =>
- throw _privateConstructorUsedError;
- }
- /// @nodoc
- abstract class $PageStackStateCopyWith<$Res> {
- factory $PageStackStateCopyWith(
- PageStackState value, $Res Function(PageStackState) then) =
- _$PageStackStateCopyWithImpl<$Res>;
- $Res call({PageContext pageContext});
- }
- /// @nodoc
- class _$PageStackStateCopyWithImpl<$Res>
- implements $PageStackStateCopyWith<$Res> {
- _$PageStackStateCopyWithImpl(this._value, this._then);
- final PageStackState _value;
- // ignore: unused_field
- final $Res Function(PageStackState) _then;
- @override
- $Res call({
- Object? pageContext = freezed,
- }) {
- return _then(_value.copyWith(
- pageContext: pageContext == freezed
- ? _value.pageContext
- : pageContext // ignore: cast_nullable_to_non_nullable
- as PageContext,
- ));
- }
- }
- /// @nodoc
- abstract class _$PageStackStateCopyWith<$Res>
- implements $PageStackStateCopyWith<$Res> {
- factory _$PageStackStateCopyWith(
- _PageStackState value, $Res Function(_PageStackState) then) =
- __$PageStackStateCopyWithImpl<$Res>;
- @override
- $Res call({PageContext pageContext});
- }
- /// @nodoc
- class __$PageStackStateCopyWithImpl<$Res>
- extends _$PageStackStateCopyWithImpl<$Res>
- implements _$PageStackStateCopyWith<$Res> {
- __$PageStackStateCopyWithImpl(
- _PageStackState _value, $Res Function(_PageStackState) _then)
- : super(_value, (v) => _then(v as _PageStackState));
- @override
- _PageStackState get _value => super._value as _PageStackState;
- @override
- $Res call({
- Object? pageContext = freezed,
- }) {
- return _then(_PageStackState(
- pageContext: pageContext == freezed
- ? _value.pageContext
- : pageContext // ignore: cast_nullable_to_non_nullable
- as PageContext,
- ));
- }
- }
- /// @nodoc
- class _$_PageStackState implements _PageStackState {
- const _$_PageStackState({required this.pageContext});
- @override
- final PageContext pageContext;
- @override
- String toString() {
- return 'PageStackState(pageContext: $pageContext)';
- }
- @override
- bool operator ==(dynamic other) {
- return identical(this, other) ||
- (other is _PageStackState &&
- (identical(other.pageContext, pageContext) ||
- const DeepCollectionEquality()
- .equals(other.pageContext, pageContext)));
- }
- @override
- int get hashCode =>
- runtimeType.hashCode ^ const DeepCollectionEquality().hash(pageContext);
- @JsonKey(ignore: true)
- @override
- _$PageStackStateCopyWith<_PageStackState> get copyWith =>
- __$PageStackStateCopyWithImpl<_PageStackState>(this, _$identity);
- }
- abstract class _PageStackState implements PageStackState {
- const factory _PageStackState({required PageContext pageContext}) =
- _$_PageStackState;
- @override
- PageContext get pageContext => throw _privateConstructorUsedError;
- @override
- @JsonKey(ignore: true)
- _$PageStackStateCopyWith<_PageStackState> get copyWith =>
- throw _privateConstructorUsedError;
- }
|