|
|
|
@@ -14,7 +14,7 @@ T _$identity<T>(T value) => value;
|
|
|
|
/// @nodoc
|
|
|
|
/// @nodoc
|
|
|
|
mixin _$VolumeControlViewState {
|
|
|
|
mixin _$VolumeControlViewState {
|
|
|
|
|
|
|
|
|
|
|
|
bool get isLoading; bool get isComplete; DeviceEntity? get device; int get media; int get ringtone; int get alarm; String get errorMessage;
|
|
|
|
bool get isLoading; bool get isComplete; DeviceEntity? get device; int get media; int get ringtone; int get alarm; int get maxMedia; int get maxRingtone; int get maxAlarm; String get errorMessage;
|
|
|
|
/// Create a copy of VolumeControlViewState
|
|
|
|
/// Create a copy of VolumeControlViewState
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
|
|
@@ -25,16 +25,16 @@ $VolumeControlViewStateCopyWith<VolumeControlViewState> get copyWith => _$Volume
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is VolumeControlViewState&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.isComplete, isComplete) || other.isComplete == isComplete)&&(identical(other.device, device) || other.device == device)&&(identical(other.media, media) || other.media == media)&&(identical(other.ringtone, ringtone) || other.ringtone == ringtone)&&(identical(other.alarm, alarm) || other.alarm == alarm)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is VolumeControlViewState&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.isComplete, isComplete) || other.isComplete == isComplete)&&(identical(other.device, device) || other.device == device)&&(identical(other.media, media) || other.media == media)&&(identical(other.ringtone, ringtone) || other.ringtone == ringtone)&&(identical(other.alarm, alarm) || other.alarm == alarm)&&(identical(other.maxMedia, maxMedia) || other.maxMedia == maxMedia)&&(identical(other.maxRingtone, maxRingtone) || other.maxRingtone == maxRingtone)&&(identical(other.maxAlarm, maxAlarm) || other.maxAlarm == maxAlarm)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
int get hashCode => Object.hash(runtimeType,isLoading,isComplete,device,media,ringtone,alarm,errorMessage);
|
|
|
|
int get hashCode => Object.hash(runtimeType,isLoading,isComplete,device,media,ringtone,alarm,maxMedia,maxRingtone,maxAlarm,errorMessage);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
String toString() {
|
|
|
|
String toString() {
|
|
|
|
return 'VolumeControlViewState(isLoading: $isLoading, isComplete: $isComplete, device: $device, media: $media, ringtone: $ringtone, alarm: $alarm, errorMessage: $errorMessage)';
|
|
|
|
return 'VolumeControlViewState(isLoading: $isLoading, isComplete: $isComplete, device: $device, media: $media, ringtone: $ringtone, alarm: $alarm, maxMedia: $maxMedia, maxRingtone: $maxRingtone, maxAlarm: $maxAlarm, errorMessage: $errorMessage)';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -45,7 +45,7 @@ abstract mixin class $VolumeControlViewStateCopyWith<$Res> {
|
|
|
|
factory $VolumeControlViewStateCopyWith(VolumeControlViewState value, $Res Function(VolumeControlViewState) _then) = _$VolumeControlViewStateCopyWithImpl;
|
|
|
|
factory $VolumeControlViewStateCopyWith(VolumeControlViewState value, $Res Function(VolumeControlViewState) _then) = _$VolumeControlViewStateCopyWithImpl;
|
|
|
|
@useResult
|
|
|
|
@useResult
|
|
|
|
$Res call({
|
|
|
|
$Res call({
|
|
|
|
bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, String errorMessage
|
|
|
|
bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, int maxMedia, int maxRingtone, int maxAlarm, String errorMessage
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -62,7 +62,7 @@ class _$VolumeControlViewStateCopyWithImpl<$Res>
|
|
|
|
|
|
|
|
|
|
|
|
/// Create a copy of VolumeControlViewState
|
|
|
|
/// Create a copy of VolumeControlViewState
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
@pragma('vm:prefer-inline') @override $Res call({Object? isLoading = null,Object? isComplete = null,Object? device = freezed,Object? media = null,Object? ringtone = null,Object? alarm = null,Object? errorMessage = null,}) {
|
|
|
|
@pragma('vm:prefer-inline') @override $Res call({Object? isLoading = null,Object? isComplete = null,Object? device = freezed,Object? media = null,Object? ringtone = null,Object? alarm = null,Object? maxMedia = null,Object? maxRingtone = null,Object? maxAlarm = null,Object? errorMessage = null,}) {
|
|
|
|
return _then(_self.copyWith(
|
|
|
|
return _then(_self.copyWith(
|
|
|
|
isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable
|
|
|
|
isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable
|
|
|
|
as bool,isComplete: null == isComplete ? _self.isComplete : isComplete // ignore: cast_nullable_to_non_nullable
|
|
|
|
as bool,isComplete: null == isComplete ? _self.isComplete : isComplete // ignore: cast_nullable_to_non_nullable
|
|
|
|
@@ -70,6 +70,9 @@ as bool,device: freezed == device ? _self.device : device // ignore: cast_nullab
|
|
|
|
as DeviceEntity?,media: null == media ? _self.media : media // ignore: cast_nullable_to_non_nullable
|
|
|
|
as DeviceEntity?,media: null == media ? _self.media : media // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,ringtone: null == ringtone ? _self.ringtone : ringtone // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,ringtone: null == ringtone ? _self.ringtone : ringtone // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,alarm: null == alarm ? _self.alarm : alarm // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,alarm: null == alarm ? _self.alarm : alarm // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
|
|
|
as int,maxMedia: null == maxMedia ? _self.maxMedia : maxMedia // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
|
|
|
as int,maxRingtone: null == maxRingtone ? _self.maxRingtone : maxRingtone // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
|
|
|
as int,maxAlarm: null == maxAlarm ? _self.maxAlarm : maxAlarm // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
|
|
|
|
as String,
|
|
|
|
as String,
|
|
|
|
));
|
|
|
|
));
|
|
|
|
@@ -168,10 +171,10 @@ return $default(_that);case _:
|
|
|
|
/// }
|
|
|
|
/// }
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, String errorMessage)? $default,{required TResult orElse(),}) {final _that = this;
|
|
|
|
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, int maxMedia, int maxRingtone, int maxAlarm, String errorMessage)? $default,{required TResult orElse(),}) {final _that = this;
|
|
|
|
switch (_that) {
|
|
|
|
switch (_that) {
|
|
|
|
case _VolumeControlViewState() when $default != null:
|
|
|
|
case _VolumeControlViewState() when $default != null:
|
|
|
|
return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.ringtone,_that.alarm,_that.errorMessage);case _:
|
|
|
|
return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.ringtone,_that.alarm,_that.maxMedia,_that.maxRingtone,_that.maxAlarm,_that.errorMessage);case _:
|
|
|
|
return orElse();
|
|
|
|
return orElse();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -189,10 +192,10 @@ return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.
|
|
|
|
/// }
|
|
|
|
/// }
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, String errorMessage) $default,) {final _that = this;
|
|
|
|
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, int maxMedia, int maxRingtone, int maxAlarm, String errorMessage) $default,) {final _that = this;
|
|
|
|
switch (_that) {
|
|
|
|
switch (_that) {
|
|
|
|
case _VolumeControlViewState():
|
|
|
|
case _VolumeControlViewState():
|
|
|
|
return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.ringtone,_that.alarm,_that.errorMessage);case _:
|
|
|
|
return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.ringtone,_that.alarm,_that.maxMedia,_that.maxRingtone,_that.maxAlarm,_that.errorMessage);case _:
|
|
|
|
throw StateError('Unexpected subclass');
|
|
|
|
throw StateError('Unexpected subclass');
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -209,10 +212,10 @@ return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.
|
|
|
|
/// }
|
|
|
|
/// }
|
|
|
|
/// ```
|
|
|
|
/// ```
|
|
|
|
|
|
|
|
|
|
|
|
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, String errorMessage)? $default,) {final _that = this;
|
|
|
|
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, int maxMedia, int maxRingtone, int maxAlarm, String errorMessage)? $default,) {final _that = this;
|
|
|
|
switch (_that) {
|
|
|
|
switch (_that) {
|
|
|
|
case _VolumeControlViewState() when $default != null:
|
|
|
|
case _VolumeControlViewState() when $default != null:
|
|
|
|
return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.ringtone,_that.alarm,_that.errorMessage);case _:
|
|
|
|
return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.ringtone,_that.alarm,_that.maxMedia,_that.maxRingtone,_that.maxAlarm,_that.errorMessage);case _:
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -224,7 +227,7 @@ return $default(_that.isLoading,_that.isComplete,_that.device,_that.media,_that.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _VolumeControlViewState implements VolumeControlViewState {
|
|
|
|
class _VolumeControlViewState implements VolumeControlViewState {
|
|
|
|
const _VolumeControlViewState({this.isLoading = true, this.isComplete = false, this.device, this.media = 50, this.ringtone = 50, this.alarm = 50, this.errorMessage = ''});
|
|
|
|
const _VolumeControlViewState({this.isLoading = true, this.isComplete = false, this.device, this.media = 5, this.ringtone = 5, this.alarm = 5, this.maxMedia = 10, this.maxRingtone = 10, this.maxAlarm = 10, this.errorMessage = ''});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override@JsonKey() final bool isLoading;
|
|
|
|
@override@JsonKey() final bool isLoading;
|
|
|
|
@@ -233,6 +236,9 @@ class _VolumeControlViewState implements VolumeControlViewState {
|
|
|
|
@override@JsonKey() final int media;
|
|
|
|
@override@JsonKey() final int media;
|
|
|
|
@override@JsonKey() final int ringtone;
|
|
|
|
@override@JsonKey() final int ringtone;
|
|
|
|
@override@JsonKey() final int alarm;
|
|
|
|
@override@JsonKey() final int alarm;
|
|
|
|
|
|
|
|
@override@JsonKey() final int maxMedia;
|
|
|
|
|
|
|
|
@override@JsonKey() final int maxRingtone;
|
|
|
|
|
|
|
|
@override@JsonKey() final int maxAlarm;
|
|
|
|
@override@JsonKey() final String errorMessage;
|
|
|
|
@override@JsonKey() final String errorMessage;
|
|
|
|
|
|
|
|
|
|
|
|
/// Create a copy of VolumeControlViewState
|
|
|
|
/// Create a copy of VolumeControlViewState
|
|
|
|
@@ -245,16 +251,16 @@ _$VolumeControlViewStateCopyWith<_VolumeControlViewState> get copyWith => __$Vol
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
bool operator ==(Object other) {
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is _VolumeControlViewState&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.isComplete, isComplete) || other.isComplete == isComplete)&&(identical(other.device, device) || other.device == device)&&(identical(other.media, media) || other.media == media)&&(identical(other.ringtone, ringtone) || other.ringtone == ringtone)&&(identical(other.alarm, alarm) || other.alarm == alarm)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType&&other is _VolumeControlViewState&&(identical(other.isLoading, isLoading) || other.isLoading == isLoading)&&(identical(other.isComplete, isComplete) || other.isComplete == isComplete)&&(identical(other.device, device) || other.device == device)&&(identical(other.media, media) || other.media == media)&&(identical(other.ringtone, ringtone) || other.ringtone == ringtone)&&(identical(other.alarm, alarm) || other.alarm == alarm)&&(identical(other.maxMedia, maxMedia) || other.maxMedia == maxMedia)&&(identical(other.maxRingtone, maxRingtone) || other.maxRingtone == maxRingtone)&&(identical(other.maxAlarm, maxAlarm) || other.maxAlarm == maxAlarm)&&(identical(other.errorMessage, errorMessage) || other.errorMessage == errorMessage));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
int get hashCode => Object.hash(runtimeType,isLoading,isComplete,device,media,ringtone,alarm,errorMessage);
|
|
|
|
int get hashCode => Object.hash(runtimeType,isLoading,isComplete,device,media,ringtone,alarm,maxMedia,maxRingtone,maxAlarm,errorMessage);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
String toString() {
|
|
|
|
String toString() {
|
|
|
|
return 'VolumeControlViewState(isLoading: $isLoading, isComplete: $isComplete, device: $device, media: $media, ringtone: $ringtone, alarm: $alarm, errorMessage: $errorMessage)';
|
|
|
|
return 'VolumeControlViewState(isLoading: $isLoading, isComplete: $isComplete, device: $device, media: $media, ringtone: $ringtone, alarm: $alarm, maxMedia: $maxMedia, maxRingtone: $maxRingtone, maxAlarm: $maxAlarm, errorMessage: $errorMessage)';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -265,7 +271,7 @@ abstract mixin class _$VolumeControlViewStateCopyWith<$Res> implements $VolumeCo
|
|
|
|
factory _$VolumeControlViewStateCopyWith(_VolumeControlViewState value, $Res Function(_VolumeControlViewState) _then) = __$VolumeControlViewStateCopyWithImpl;
|
|
|
|
factory _$VolumeControlViewStateCopyWith(_VolumeControlViewState value, $Res Function(_VolumeControlViewState) _then) = __$VolumeControlViewStateCopyWithImpl;
|
|
|
|
@override @useResult
|
|
|
|
@override @useResult
|
|
|
|
$Res call({
|
|
|
|
$Res call({
|
|
|
|
bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, String errorMessage
|
|
|
|
bool isLoading, bool isComplete, DeviceEntity? device, int media, int ringtone, int alarm, int maxMedia, int maxRingtone, int maxAlarm, String errorMessage
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -282,7 +288,7 @@ class __$VolumeControlViewStateCopyWithImpl<$Res>
|
|
|
|
|
|
|
|
|
|
|
|
/// Create a copy of VolumeControlViewState
|
|
|
|
/// Create a copy of VolumeControlViewState
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
|
|
@override @pragma('vm:prefer-inline') $Res call({Object? isLoading = null,Object? isComplete = null,Object? device = freezed,Object? media = null,Object? ringtone = null,Object? alarm = null,Object? errorMessage = null,}) {
|
|
|
|
@override @pragma('vm:prefer-inline') $Res call({Object? isLoading = null,Object? isComplete = null,Object? device = freezed,Object? media = null,Object? ringtone = null,Object? alarm = null,Object? maxMedia = null,Object? maxRingtone = null,Object? maxAlarm = null,Object? errorMessage = null,}) {
|
|
|
|
return _then(_VolumeControlViewState(
|
|
|
|
return _then(_VolumeControlViewState(
|
|
|
|
isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable
|
|
|
|
isLoading: null == isLoading ? _self.isLoading : isLoading // ignore: cast_nullable_to_non_nullable
|
|
|
|
as bool,isComplete: null == isComplete ? _self.isComplete : isComplete // ignore: cast_nullable_to_non_nullable
|
|
|
|
as bool,isComplete: null == isComplete ? _self.isComplete : isComplete // ignore: cast_nullable_to_non_nullable
|
|
|
|
@@ -290,6 +296,9 @@ as bool,device: freezed == device ? _self.device : device // ignore: cast_nullab
|
|
|
|
as DeviceEntity?,media: null == media ? _self.media : media // ignore: cast_nullable_to_non_nullable
|
|
|
|
as DeviceEntity?,media: null == media ? _self.media : media // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,ringtone: null == ringtone ? _self.ringtone : ringtone // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,ringtone: null == ringtone ? _self.ringtone : ringtone // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,alarm: null == alarm ? _self.alarm : alarm // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,alarm: null == alarm ? _self.alarm : alarm // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
|
|
|
as int,maxMedia: null == maxMedia ? _self.maxMedia : maxMedia // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
|
|
|
as int,maxRingtone: null == maxRingtone ? _self.maxRingtone : maxRingtone // ignore: cast_nullable_to_non_nullable
|
|
|
|
|
|
|
|
as int,maxAlarm: null == maxAlarm ? _self.maxAlarm : maxAlarm // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
|
|
|
|
as int,errorMessage: null == errorMessage ? _self.errorMessage : errorMessage // ignore: cast_nullable_to_non_nullable
|
|
|
|
as String,
|
|
|
|
as String,
|
|
|
|
));
|
|
|
|
));
|
|
|
|
|