PIbd-32_Shabunov_O.A._Mobil.../lib/presentation/favourites_bloc/favourites_state.g.dart

72 lines
2.9 KiB
Dart
Raw Normal View History

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'favourites_state.dart';
// **************************************************************************
// CopyWithGenerator
// **************************************************************************
abstract class _$FavouritesStateCWProxy {
FavouritesState favouritesIds(List<String>? favouritesIds);
FavouritesState hasFavouritesLoaded(bool hasFavouritesLoaded);
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `FavouritesState(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
///
/// Usage
/// ```dart
/// FavouritesState(...).copyWith(id: 12, name: "My name")
/// ````
FavouritesState call({
List<String>? favouritesIds,
bool? hasFavouritesLoaded,
});
}
/// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfFavouritesState.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfFavouritesState.copyWith.fieldName(...)`
class _$FavouritesStateCWProxyImpl implements _$FavouritesStateCWProxy {
const _$FavouritesStateCWProxyImpl(this._value);
final FavouritesState _value;
@override
FavouritesState favouritesIds(List<String>? favouritesIds) =>
this(favouritesIds: favouritesIds);
@override
FavouritesState hasFavouritesLoaded(bool hasFavouritesLoaded) =>
this(hasFavouritesLoaded: hasFavouritesLoaded);
@override
/// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `FavouritesState(...).copyWith.fieldName(...)` to override fields one at a time with nullification support.
///
/// Usage
/// ```dart
/// FavouritesState(...).copyWith(id: 12, name: "My name")
/// ````
FavouritesState call({
Object? favouritesIds = const $CopyWithPlaceholder(),
Object? hasFavouritesLoaded = const $CopyWithPlaceholder(),
}) {
return FavouritesState(
favouritesIds: favouritesIds == const $CopyWithPlaceholder()
? _value.favouritesIds
// ignore: cast_nullable_to_non_nullable
: favouritesIds as List<String>?,
hasFavouritesLoaded:
hasFavouritesLoaded == const $CopyWithPlaceholder() ||
hasFavouritesLoaded == null
? _value.hasFavouritesLoaded
// ignore: cast_nullable_to_non_nullable
: hasFavouritesLoaded as bool,
);
}
}
extension $FavouritesStateCopyWith on FavouritesState {
/// Returns a callable class that can be used as follows: `instanceOfFavouritesState.copyWith(...)` or like so:`instanceOfFavouritesState.copyWith.fieldName(...)`.
// ignore: library_private_types_in_public_api
_$FavouritesStateCWProxy get copyWith => _$FavouritesStateCWProxyImpl(this);
}