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