1315 lines
40 KiB
Dart
1315 lines
40 KiB
Dart
|
|
// 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 'tax_settings_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 _$TaxSettingsEvent {
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() loadSettings,
|
||
|
|
required TResult Function(TaxModel taxModel) saveTax,
|
||
|
|
required TResult Function(int serviceCharge) saveServiceCharge,
|
||
|
|
required TResult Function(int taxValue, int serviceChargeValue)
|
||
|
|
updateSettings,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? loadSettings,
|
||
|
|
TResult? Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult? Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult? Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? loadSettings,
|
||
|
|
TResult Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_LoadSettings value) loadSettings,
|
||
|
|
required TResult Function(_SaveTax value) saveTax,
|
||
|
|
required TResult Function(_SaveServiceCharge value) saveServiceCharge,
|
||
|
|
required TResult Function(_UpdateSettings value) updateSettings,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult? Function(_SaveTax value)? saveTax,
|
||
|
|
TResult? Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult? Function(_UpdateSettings value)? updateSettings,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult Function(_SaveTax value)? saveTax,
|
||
|
|
TResult Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult Function(_UpdateSettings value)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class $TaxSettingsEventCopyWith<$Res> {
|
||
|
|
factory $TaxSettingsEventCopyWith(
|
||
|
|
TaxSettingsEvent value, $Res Function(TaxSettingsEvent) then) =
|
||
|
|
_$TaxSettingsEventCopyWithImpl<$Res, TaxSettingsEvent>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class _$TaxSettingsEventCopyWithImpl<$Res, $Val extends TaxSettingsEvent>
|
||
|
|
implements $TaxSettingsEventCopyWith<$Res> {
|
||
|
|
_$TaxSettingsEventCopyWithImpl(this._value, this._then);
|
||
|
|
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Val _value;
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Res Function($Val) _then;
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$LoadSettingsImplCopyWith<$Res> {
|
||
|
|
factory _$$LoadSettingsImplCopyWith(
|
||
|
|
_$LoadSettingsImpl value, $Res Function(_$LoadSettingsImpl) then) =
|
||
|
|
__$$LoadSettingsImplCopyWithImpl<$Res>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$LoadSettingsImplCopyWithImpl<$Res>
|
||
|
|
extends _$TaxSettingsEventCopyWithImpl<$Res, _$LoadSettingsImpl>
|
||
|
|
implements _$$LoadSettingsImplCopyWith<$Res> {
|
||
|
|
__$$LoadSettingsImplCopyWithImpl(
|
||
|
|
_$LoadSettingsImpl _value, $Res Function(_$LoadSettingsImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$LoadSettingsImpl implements _LoadSettings {
|
||
|
|
const _$LoadSettingsImpl();
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'TaxSettingsEvent.loadSettings()';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType && other is _$LoadSettingsImpl);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => runtimeType.hashCode;
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() loadSettings,
|
||
|
|
required TResult Function(TaxModel taxModel) saveTax,
|
||
|
|
required TResult Function(int serviceCharge) saveServiceCharge,
|
||
|
|
required TResult Function(int taxValue, int serviceChargeValue)
|
||
|
|
updateSettings,
|
||
|
|
}) {
|
||
|
|
return loadSettings();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? loadSettings,
|
||
|
|
TResult? Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult? Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult? Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
}) {
|
||
|
|
return loadSettings?.call();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? loadSettings,
|
||
|
|
TResult Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (loadSettings != null) {
|
||
|
|
return loadSettings();
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_LoadSettings value) loadSettings,
|
||
|
|
required TResult Function(_SaveTax value) saveTax,
|
||
|
|
required TResult Function(_SaveServiceCharge value) saveServiceCharge,
|
||
|
|
required TResult Function(_UpdateSettings value) updateSettings,
|
||
|
|
}) {
|
||
|
|
return loadSettings(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult? Function(_SaveTax value)? saveTax,
|
||
|
|
TResult? Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult? Function(_UpdateSettings value)? updateSettings,
|
||
|
|
}) {
|
||
|
|
return loadSettings?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult Function(_SaveTax value)? saveTax,
|
||
|
|
TResult Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult Function(_UpdateSettings value)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (loadSettings != null) {
|
||
|
|
return loadSettings(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _LoadSettings implements TaxSettingsEvent {
|
||
|
|
const factory _LoadSettings() = _$LoadSettingsImpl;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$SaveTaxImplCopyWith<$Res> {
|
||
|
|
factory _$$SaveTaxImplCopyWith(
|
||
|
|
_$SaveTaxImpl value, $Res Function(_$SaveTaxImpl) then) =
|
||
|
|
__$$SaveTaxImplCopyWithImpl<$Res>;
|
||
|
|
@useResult
|
||
|
|
$Res call({TaxModel taxModel});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$SaveTaxImplCopyWithImpl<$Res>
|
||
|
|
extends _$TaxSettingsEventCopyWithImpl<$Res, _$SaveTaxImpl>
|
||
|
|
implements _$$SaveTaxImplCopyWith<$Res> {
|
||
|
|
__$$SaveTaxImplCopyWithImpl(
|
||
|
|
_$SaveTaxImpl _value, $Res Function(_$SaveTaxImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? taxModel = null,
|
||
|
|
}) {
|
||
|
|
return _then(_$SaveTaxImpl(
|
||
|
|
null == taxModel
|
||
|
|
? _value.taxModel
|
||
|
|
: taxModel // ignore: cast_nullable_to_non_nullable
|
||
|
|
as TaxModel,
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$SaveTaxImpl implements _SaveTax {
|
||
|
|
const _$SaveTaxImpl(this.taxModel);
|
||
|
|
|
||
|
|
@override
|
||
|
|
final TaxModel taxModel;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'TaxSettingsEvent.saveTax(taxModel: $taxModel)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$SaveTaxImpl &&
|
||
|
|
(identical(other.taxModel, taxModel) ||
|
||
|
|
other.taxModel == taxModel));
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, taxModel);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$SaveTaxImplCopyWith<_$SaveTaxImpl> get copyWith =>
|
||
|
|
__$$SaveTaxImplCopyWithImpl<_$SaveTaxImpl>(this, _$identity);
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() loadSettings,
|
||
|
|
required TResult Function(TaxModel taxModel) saveTax,
|
||
|
|
required TResult Function(int serviceCharge) saveServiceCharge,
|
||
|
|
required TResult Function(int taxValue, int serviceChargeValue)
|
||
|
|
updateSettings,
|
||
|
|
}) {
|
||
|
|
return saveTax(taxModel);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? loadSettings,
|
||
|
|
TResult? Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult? Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult? Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
}) {
|
||
|
|
return saveTax?.call(taxModel);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? loadSettings,
|
||
|
|
TResult Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (saveTax != null) {
|
||
|
|
return saveTax(taxModel);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_LoadSettings value) loadSettings,
|
||
|
|
required TResult Function(_SaveTax value) saveTax,
|
||
|
|
required TResult Function(_SaveServiceCharge value) saveServiceCharge,
|
||
|
|
required TResult Function(_UpdateSettings value) updateSettings,
|
||
|
|
}) {
|
||
|
|
return saveTax(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult? Function(_SaveTax value)? saveTax,
|
||
|
|
TResult? Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult? Function(_UpdateSettings value)? updateSettings,
|
||
|
|
}) {
|
||
|
|
return saveTax?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult Function(_SaveTax value)? saveTax,
|
||
|
|
TResult Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult Function(_UpdateSettings value)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (saveTax != null) {
|
||
|
|
return saveTax(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _SaveTax implements TaxSettingsEvent {
|
||
|
|
const factory _SaveTax(final TaxModel taxModel) = _$SaveTaxImpl;
|
||
|
|
|
||
|
|
TaxModel get taxModel;
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$SaveTaxImplCopyWith<_$SaveTaxImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$SaveServiceChargeImplCopyWith<$Res> {
|
||
|
|
factory _$$SaveServiceChargeImplCopyWith(_$SaveServiceChargeImpl value,
|
||
|
|
$Res Function(_$SaveServiceChargeImpl) then) =
|
||
|
|
__$$SaveServiceChargeImplCopyWithImpl<$Res>;
|
||
|
|
@useResult
|
||
|
|
$Res call({int serviceCharge});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$SaveServiceChargeImplCopyWithImpl<$Res>
|
||
|
|
extends _$TaxSettingsEventCopyWithImpl<$Res, _$SaveServiceChargeImpl>
|
||
|
|
implements _$$SaveServiceChargeImplCopyWith<$Res> {
|
||
|
|
__$$SaveServiceChargeImplCopyWithImpl(_$SaveServiceChargeImpl _value,
|
||
|
|
$Res Function(_$SaveServiceChargeImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? serviceCharge = null,
|
||
|
|
}) {
|
||
|
|
return _then(_$SaveServiceChargeImpl(
|
||
|
|
null == serviceCharge
|
||
|
|
? _value.serviceCharge
|
||
|
|
: serviceCharge // ignore: cast_nullable_to_non_nullable
|
||
|
|
as int,
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$SaveServiceChargeImpl implements _SaveServiceCharge {
|
||
|
|
const _$SaveServiceChargeImpl(this.serviceCharge);
|
||
|
|
|
||
|
|
@override
|
||
|
|
final int serviceCharge;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'TaxSettingsEvent.saveServiceCharge(serviceCharge: $serviceCharge)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$SaveServiceChargeImpl &&
|
||
|
|
(identical(other.serviceCharge, serviceCharge) ||
|
||
|
|
other.serviceCharge == serviceCharge));
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, serviceCharge);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$SaveServiceChargeImplCopyWith<_$SaveServiceChargeImpl> get copyWith =>
|
||
|
|
__$$SaveServiceChargeImplCopyWithImpl<_$SaveServiceChargeImpl>(
|
||
|
|
this, _$identity);
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() loadSettings,
|
||
|
|
required TResult Function(TaxModel taxModel) saveTax,
|
||
|
|
required TResult Function(int serviceCharge) saveServiceCharge,
|
||
|
|
required TResult Function(int taxValue, int serviceChargeValue)
|
||
|
|
updateSettings,
|
||
|
|
}) {
|
||
|
|
return saveServiceCharge(serviceCharge);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? loadSettings,
|
||
|
|
TResult? Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult? Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult? Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
}) {
|
||
|
|
return saveServiceCharge?.call(serviceCharge);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? loadSettings,
|
||
|
|
TResult Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (saveServiceCharge != null) {
|
||
|
|
return saveServiceCharge(serviceCharge);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_LoadSettings value) loadSettings,
|
||
|
|
required TResult Function(_SaveTax value) saveTax,
|
||
|
|
required TResult Function(_SaveServiceCharge value) saveServiceCharge,
|
||
|
|
required TResult Function(_UpdateSettings value) updateSettings,
|
||
|
|
}) {
|
||
|
|
return saveServiceCharge(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult? Function(_SaveTax value)? saveTax,
|
||
|
|
TResult? Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult? Function(_UpdateSettings value)? updateSettings,
|
||
|
|
}) {
|
||
|
|
return saveServiceCharge?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult Function(_SaveTax value)? saveTax,
|
||
|
|
TResult Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult Function(_UpdateSettings value)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (saveServiceCharge != null) {
|
||
|
|
return saveServiceCharge(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _SaveServiceCharge implements TaxSettingsEvent {
|
||
|
|
const factory _SaveServiceCharge(final int serviceCharge) =
|
||
|
|
_$SaveServiceChargeImpl;
|
||
|
|
|
||
|
|
int get serviceCharge;
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$SaveServiceChargeImplCopyWith<_$SaveServiceChargeImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$UpdateSettingsImplCopyWith<$Res> {
|
||
|
|
factory _$$UpdateSettingsImplCopyWith(_$UpdateSettingsImpl value,
|
||
|
|
$Res Function(_$UpdateSettingsImpl) then) =
|
||
|
|
__$$UpdateSettingsImplCopyWithImpl<$Res>;
|
||
|
|
@useResult
|
||
|
|
$Res call({int taxValue, int serviceChargeValue});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$UpdateSettingsImplCopyWithImpl<$Res>
|
||
|
|
extends _$TaxSettingsEventCopyWithImpl<$Res, _$UpdateSettingsImpl>
|
||
|
|
implements _$$UpdateSettingsImplCopyWith<$Res> {
|
||
|
|
__$$UpdateSettingsImplCopyWithImpl(
|
||
|
|
_$UpdateSettingsImpl _value, $Res Function(_$UpdateSettingsImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? taxValue = null,
|
||
|
|
Object? serviceChargeValue = null,
|
||
|
|
}) {
|
||
|
|
return _then(_$UpdateSettingsImpl(
|
||
|
|
taxValue: null == taxValue
|
||
|
|
? _value.taxValue
|
||
|
|
: taxValue // ignore: cast_nullable_to_non_nullable
|
||
|
|
as int,
|
||
|
|
serviceChargeValue: null == serviceChargeValue
|
||
|
|
? _value.serviceChargeValue
|
||
|
|
: serviceChargeValue // ignore: cast_nullable_to_non_nullable
|
||
|
|
as int,
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$UpdateSettingsImpl implements _UpdateSettings {
|
||
|
|
const _$UpdateSettingsImpl(
|
||
|
|
{required this.taxValue, required this.serviceChargeValue});
|
||
|
|
|
||
|
|
@override
|
||
|
|
final int taxValue;
|
||
|
|
@override
|
||
|
|
final int serviceChargeValue;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'TaxSettingsEvent.updateSettings(taxValue: $taxValue, serviceChargeValue: $serviceChargeValue)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$UpdateSettingsImpl &&
|
||
|
|
(identical(other.taxValue, taxValue) ||
|
||
|
|
other.taxValue == taxValue) &&
|
||
|
|
(identical(other.serviceChargeValue, serviceChargeValue) ||
|
||
|
|
other.serviceChargeValue == serviceChargeValue));
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, taxValue, serviceChargeValue);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$UpdateSettingsImplCopyWith<_$UpdateSettingsImpl> get copyWith =>
|
||
|
|
__$$UpdateSettingsImplCopyWithImpl<_$UpdateSettingsImpl>(
|
||
|
|
this, _$identity);
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() loadSettings,
|
||
|
|
required TResult Function(TaxModel taxModel) saveTax,
|
||
|
|
required TResult Function(int serviceCharge) saveServiceCharge,
|
||
|
|
required TResult Function(int taxValue, int serviceChargeValue)
|
||
|
|
updateSettings,
|
||
|
|
}) {
|
||
|
|
return updateSettings(taxValue, serviceChargeValue);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? loadSettings,
|
||
|
|
TResult? Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult? Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult? Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
}) {
|
||
|
|
return updateSettings?.call(taxValue, serviceChargeValue);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? loadSettings,
|
||
|
|
TResult Function(TaxModel taxModel)? saveTax,
|
||
|
|
TResult Function(int serviceCharge)? saveServiceCharge,
|
||
|
|
TResult Function(int taxValue, int serviceChargeValue)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (updateSettings != null) {
|
||
|
|
return updateSettings(taxValue, serviceChargeValue);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_LoadSettings value) loadSettings,
|
||
|
|
required TResult Function(_SaveTax value) saveTax,
|
||
|
|
required TResult Function(_SaveServiceCharge value) saveServiceCharge,
|
||
|
|
required TResult Function(_UpdateSettings value) updateSettings,
|
||
|
|
}) {
|
||
|
|
return updateSettings(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult? Function(_SaveTax value)? saveTax,
|
||
|
|
TResult? Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult? Function(_UpdateSettings value)? updateSettings,
|
||
|
|
}) {
|
||
|
|
return updateSettings?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_LoadSettings value)? loadSettings,
|
||
|
|
TResult Function(_SaveTax value)? saveTax,
|
||
|
|
TResult Function(_SaveServiceCharge value)? saveServiceCharge,
|
||
|
|
TResult Function(_UpdateSettings value)? updateSettings,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (updateSettings != null) {
|
||
|
|
return updateSettings(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _UpdateSettings implements TaxSettingsEvent {
|
||
|
|
const factory _UpdateSettings(
|
||
|
|
{required final int taxValue,
|
||
|
|
required final int serviceChargeValue}) = _$UpdateSettingsImpl;
|
||
|
|
|
||
|
|
int get taxValue;
|
||
|
|
int get serviceChargeValue;
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsEvent
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$UpdateSettingsImplCopyWith<_$UpdateSettingsImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
mixin _$TaxSettingsState {
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() loading,
|
||
|
|
required TResult Function(TaxModel taxModel, int serviceChargeValue) loaded,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? loading,
|
||
|
|
TResult? Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? loading,
|
||
|
|
TResult Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Loading value) loading,
|
||
|
|
required TResult Function(_Loaded value) loaded,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Loading value)? loading,
|
||
|
|
TResult? Function(_Loaded value)? loaded,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Loading value)? loading,
|
||
|
|
TResult Function(_Loaded value)? loaded,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class $TaxSettingsStateCopyWith<$Res> {
|
||
|
|
factory $TaxSettingsStateCopyWith(
|
||
|
|
TaxSettingsState value, $Res Function(TaxSettingsState) then) =
|
||
|
|
_$TaxSettingsStateCopyWithImpl<$Res, TaxSettingsState>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class _$TaxSettingsStateCopyWithImpl<$Res, $Val extends TaxSettingsState>
|
||
|
|
implements $TaxSettingsStateCopyWith<$Res> {
|
||
|
|
_$TaxSettingsStateCopyWithImpl(this._value, this._then);
|
||
|
|
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Val _value;
|
||
|
|
// ignore: unused_field
|
||
|
|
final $Res Function($Val) _then;
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$InitialImplCopyWith<$Res> {
|
||
|
|
factory _$$InitialImplCopyWith(
|
||
|
|
_$InitialImpl value, $Res Function(_$InitialImpl) then) =
|
||
|
|
__$$InitialImplCopyWithImpl<$Res>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$InitialImplCopyWithImpl<$Res>
|
||
|
|
extends _$TaxSettingsStateCopyWithImpl<$Res, _$InitialImpl>
|
||
|
|
implements _$$InitialImplCopyWith<$Res> {
|
||
|
|
__$$InitialImplCopyWithImpl(
|
||
|
|
_$InitialImpl _value, $Res Function(_$InitialImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$InitialImpl implements _Initial {
|
||
|
|
const _$InitialImpl();
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'TaxSettingsState.initial()';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType && other is _$InitialImpl);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => runtimeType.hashCode;
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() loading,
|
||
|
|
required TResult Function(TaxModel taxModel, int serviceChargeValue) loaded,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) {
|
||
|
|
return initial();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? loading,
|
||
|
|
TResult? Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) {
|
||
|
|
return initial?.call();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? loading,
|
||
|
|
TResult Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (initial != null) {
|
||
|
|
return initial();
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Loading value) loading,
|
||
|
|
required TResult Function(_Loaded value) loaded,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) {
|
||
|
|
return initial(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Loading value)? loading,
|
||
|
|
TResult? Function(_Loaded value)? loaded,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) {
|
||
|
|
return initial?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Loading value)? loading,
|
||
|
|
TResult Function(_Loaded value)? loaded,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (initial != null) {
|
||
|
|
return initial(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Initial implements TaxSettingsState {
|
||
|
|
const factory _Initial() = _$InitialImpl;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$LoadingImplCopyWith<$Res> {
|
||
|
|
factory _$$LoadingImplCopyWith(
|
||
|
|
_$LoadingImpl value, $Res Function(_$LoadingImpl) then) =
|
||
|
|
__$$LoadingImplCopyWithImpl<$Res>;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$LoadingImplCopyWithImpl<$Res>
|
||
|
|
extends _$TaxSettingsStateCopyWithImpl<$Res, _$LoadingImpl>
|
||
|
|
implements _$$LoadingImplCopyWith<$Res> {
|
||
|
|
__$$LoadingImplCopyWithImpl(
|
||
|
|
_$LoadingImpl _value, $Res Function(_$LoadingImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$LoadingImpl implements _Loading {
|
||
|
|
const _$LoadingImpl();
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'TaxSettingsState.loading()';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType && other is _$LoadingImpl);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => runtimeType.hashCode;
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() loading,
|
||
|
|
required TResult Function(TaxModel taxModel, int serviceChargeValue) loaded,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) {
|
||
|
|
return loading();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? loading,
|
||
|
|
TResult? Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) {
|
||
|
|
return loading?.call();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? loading,
|
||
|
|
TResult Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (loading != null) {
|
||
|
|
return loading();
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Loading value) loading,
|
||
|
|
required TResult Function(_Loaded value) loaded,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) {
|
||
|
|
return loading(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Loading value)? loading,
|
||
|
|
TResult? Function(_Loaded value)? loaded,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) {
|
||
|
|
return loading?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Loading value)? loading,
|
||
|
|
TResult Function(_Loaded value)? loaded,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (loading != null) {
|
||
|
|
return loading(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Loading implements TaxSettingsState {
|
||
|
|
const factory _Loading() = _$LoadingImpl;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$LoadedImplCopyWith<$Res> {
|
||
|
|
factory _$$LoadedImplCopyWith(
|
||
|
|
_$LoadedImpl value, $Res Function(_$LoadedImpl) then) =
|
||
|
|
__$$LoadedImplCopyWithImpl<$Res>;
|
||
|
|
@useResult
|
||
|
|
$Res call({TaxModel taxModel, int serviceChargeValue});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$LoadedImplCopyWithImpl<$Res>
|
||
|
|
extends _$TaxSettingsStateCopyWithImpl<$Res, _$LoadedImpl>
|
||
|
|
implements _$$LoadedImplCopyWith<$Res> {
|
||
|
|
__$$LoadedImplCopyWithImpl(
|
||
|
|
_$LoadedImpl _value, $Res Function(_$LoadedImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? taxModel = null,
|
||
|
|
Object? serviceChargeValue = null,
|
||
|
|
}) {
|
||
|
|
return _then(_$LoadedImpl(
|
||
|
|
taxModel: null == taxModel
|
||
|
|
? _value.taxModel
|
||
|
|
: taxModel // ignore: cast_nullable_to_non_nullable
|
||
|
|
as TaxModel,
|
||
|
|
serviceChargeValue: null == serviceChargeValue
|
||
|
|
? _value.serviceChargeValue
|
||
|
|
: serviceChargeValue // ignore: cast_nullable_to_non_nullable
|
||
|
|
as int,
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$LoadedImpl implements _Loaded {
|
||
|
|
const _$LoadedImpl(
|
||
|
|
{required this.taxModel, required this.serviceChargeValue});
|
||
|
|
|
||
|
|
@override
|
||
|
|
final TaxModel taxModel;
|
||
|
|
@override
|
||
|
|
final int serviceChargeValue;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'TaxSettingsState.loaded(taxModel: $taxModel, serviceChargeValue: $serviceChargeValue)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$LoadedImpl &&
|
||
|
|
(identical(other.taxModel, taxModel) ||
|
||
|
|
other.taxModel == taxModel) &&
|
||
|
|
(identical(other.serviceChargeValue, serviceChargeValue) ||
|
||
|
|
other.serviceChargeValue == serviceChargeValue));
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, taxModel, serviceChargeValue);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$LoadedImplCopyWith<_$LoadedImpl> get copyWith =>
|
||
|
|
__$$LoadedImplCopyWithImpl<_$LoadedImpl>(this, _$identity);
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() loading,
|
||
|
|
required TResult Function(TaxModel taxModel, int serviceChargeValue) loaded,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) {
|
||
|
|
return loaded(taxModel, serviceChargeValue);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? loading,
|
||
|
|
TResult? Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) {
|
||
|
|
return loaded?.call(taxModel, serviceChargeValue);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? loading,
|
||
|
|
TResult Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (loaded != null) {
|
||
|
|
return loaded(taxModel, serviceChargeValue);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Loading value) loading,
|
||
|
|
required TResult Function(_Loaded value) loaded,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) {
|
||
|
|
return loaded(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Loading value)? loading,
|
||
|
|
TResult? Function(_Loaded value)? loaded,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) {
|
||
|
|
return loaded?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Loading value)? loading,
|
||
|
|
TResult Function(_Loaded value)? loaded,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (loaded != null) {
|
||
|
|
return loaded(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Loaded implements TaxSettingsState {
|
||
|
|
const factory _Loaded(
|
||
|
|
{required final TaxModel taxModel,
|
||
|
|
required final int serviceChargeValue}) = _$LoadedImpl;
|
||
|
|
|
||
|
|
TaxModel get taxModel;
|
||
|
|
int get serviceChargeValue;
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$LoadedImplCopyWith<_$LoadedImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
abstract class _$$ErrorImplCopyWith<$Res> {
|
||
|
|
factory _$$ErrorImplCopyWith(
|
||
|
|
_$ErrorImpl value, $Res Function(_$ErrorImpl) then) =
|
||
|
|
__$$ErrorImplCopyWithImpl<$Res>;
|
||
|
|
@useResult
|
||
|
|
$Res call({String message});
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
class __$$ErrorImplCopyWithImpl<$Res>
|
||
|
|
extends _$TaxSettingsStateCopyWithImpl<$Res, _$ErrorImpl>
|
||
|
|
implements _$$ErrorImplCopyWith<$Res> {
|
||
|
|
__$$ErrorImplCopyWithImpl(
|
||
|
|
_$ErrorImpl _value, $Res Function(_$ErrorImpl) _then)
|
||
|
|
: super(_value, _then);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
@override
|
||
|
|
$Res call({
|
||
|
|
Object? message = null,
|
||
|
|
}) {
|
||
|
|
return _then(_$ErrorImpl(
|
||
|
|
null == message
|
||
|
|
? _value.message
|
||
|
|
: message // ignore: cast_nullable_to_non_nullable
|
||
|
|
as String,
|
||
|
|
));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/// @nodoc
|
||
|
|
|
||
|
|
class _$ErrorImpl implements _Error {
|
||
|
|
const _$ErrorImpl(this.message);
|
||
|
|
|
||
|
|
@override
|
||
|
|
final String message;
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() {
|
||
|
|
return 'TaxSettingsState.error(message: $message)';
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other.runtimeType == runtimeType &&
|
||
|
|
other is _$ErrorImpl &&
|
||
|
|
(identical(other.message, message) || other.message == message));
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => Object.hash(runtimeType, message);
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
@override
|
||
|
|
@pragma('vm:prefer-inline')
|
||
|
|
_$$ErrorImplCopyWith<_$ErrorImpl> get copyWith =>
|
||
|
|
__$$ErrorImplCopyWithImpl<_$ErrorImpl>(this, _$identity);
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult when<TResult extends Object?>({
|
||
|
|
required TResult Function() initial,
|
||
|
|
required TResult Function() loading,
|
||
|
|
required TResult Function(TaxModel taxModel, int serviceChargeValue) loaded,
|
||
|
|
required TResult Function(String message) error,
|
||
|
|
}) {
|
||
|
|
return error(message);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? whenOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function()? initial,
|
||
|
|
TResult? Function()? loading,
|
||
|
|
TResult? Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult? Function(String message)? error,
|
||
|
|
}) {
|
||
|
|
return error?.call(message);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeWhen<TResult extends Object?>({
|
||
|
|
TResult Function()? initial,
|
||
|
|
TResult Function()? loading,
|
||
|
|
TResult Function(TaxModel taxModel, int serviceChargeValue)? loaded,
|
||
|
|
TResult Function(String message)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (error != null) {
|
||
|
|
return error(message);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult map<TResult extends Object?>({
|
||
|
|
required TResult Function(_Initial value) initial,
|
||
|
|
required TResult Function(_Loading value) loading,
|
||
|
|
required TResult Function(_Loaded value) loaded,
|
||
|
|
required TResult Function(_Error value) error,
|
||
|
|
}) {
|
||
|
|
return error(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult? mapOrNull<TResult extends Object?>({
|
||
|
|
TResult? Function(_Initial value)? initial,
|
||
|
|
TResult? Function(_Loading value)? loading,
|
||
|
|
TResult? Function(_Loaded value)? loaded,
|
||
|
|
TResult? Function(_Error value)? error,
|
||
|
|
}) {
|
||
|
|
return error?.call(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
@optionalTypeArgs
|
||
|
|
TResult maybeMap<TResult extends Object?>({
|
||
|
|
TResult Function(_Initial value)? initial,
|
||
|
|
TResult Function(_Loading value)? loading,
|
||
|
|
TResult Function(_Loaded value)? loaded,
|
||
|
|
TResult Function(_Error value)? error,
|
||
|
|
required TResult orElse(),
|
||
|
|
}) {
|
||
|
|
if (error != null) {
|
||
|
|
return error(this);
|
||
|
|
}
|
||
|
|
return orElse();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
abstract class _Error implements TaxSettingsState {
|
||
|
|
const factory _Error(final String message) = _$ErrorImpl;
|
||
|
|
|
||
|
|
String get message;
|
||
|
|
|
||
|
|
/// Create a copy of TaxSettingsState
|
||
|
|
/// with the given fields replaced by the non-null parameter values.
|
||
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
||
|
|
_$$ErrorImplCopyWith<_$ErrorImpl> get copyWith =>
|
||
|
|
throw _privateConstructorUsedError;
|
||
|
|
}
|