|
@ -26,8 +26,7 @@ class _$ImageSplitterStateTearOff { |
|
|
return const ImageSplitterGenerating(); |
|
|
return const ImageSplitterGenerating(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ImageSplitterComplete complete( |
|
|
|
|
|
Image image, List<Image> images, PaletteGenerator palette) { |
|
|
|
|
|
|
|
|
ImageSplitterComplete complete(Image image, List<Image> images, PaletteGenerator palette) { |
|
|
return ImageSplitterComplete( |
|
|
return ImageSplitterComplete( |
|
|
image, |
|
|
image, |
|
|
images, |
|
|
images, |
|
@ -51,18 +50,16 @@ mixin _$ImageSplitterState { |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult Function() $default, { |
|
|
TResult Function() $default, { |
|
|
required TResult Function() generating, |
|
|
required TResult Function() generating, |
|
|
required TResult Function( |
|
|
|
|
|
Image image, List<Image> images, PaletteGenerator palette) |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
required TResult Function(Image image, List<Image> images, PaletteGenerator palette) complete, |
|
|
required TResult Function(String? message) error, |
|
|
required TResult Function(String? message) error, |
|
|
}) => |
|
|
}) => |
|
|
throw _privateConstructorUsedError; |
|
|
throw _privateConstructorUsedError; |
|
|
|
|
|
|
|
|
@optionalTypeArgs |
|
|
@optionalTypeArgs |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
}) => |
|
|
}) => |
|
|
throw _privateConstructorUsedError; |
|
|
throw _privateConstructorUsedError; |
|
@ -70,12 +67,12 @@ mixin _$ImageSplitterState { |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
required TResult orElse(), |
|
|
required TResult orElse(), |
|
|
}) => |
|
|
}) => |
|
|
throw _privateConstructorUsedError; |
|
|
throw _privateConstructorUsedError; |
|
|
|
|
|
|
|
|
@optionalTypeArgs |
|
|
@optionalTypeArgs |
|
|
TResult map<TResult extends Object?>( |
|
|
TResult map<TResult extends Object?>( |
|
|
TResult Function(ImageSplitterIdle value) $default, { |
|
|
TResult Function(ImageSplitterIdle value) $default, { |
|
@ -84,6 +81,7 @@ mixin _$ImageSplitterState { |
|
|
required TResult Function(ImageSplitterError value) error, |
|
|
required TResult Function(ImageSplitterError value) error, |
|
|
}) => |
|
|
}) => |
|
|
throw _privateConstructorUsedError; |
|
|
throw _privateConstructorUsedError; |
|
|
|
|
|
|
|
|
@optionalTypeArgs |
|
|
@optionalTypeArgs |
|
|
TResult? mapOrNull<TResult extends Object?>( |
|
|
TResult? mapOrNull<TResult extends Object?>( |
|
|
TResult Function(ImageSplitterIdle value)? $default, { |
|
|
TResult Function(ImageSplitterIdle value)? $default, { |
|
@ -105,34 +103,30 @@ mixin _$ImageSplitterState { |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
abstract class $ImageSplitterStateCopyWith<$Res> { |
|
|
abstract class $ImageSplitterStateCopyWith<$Res> { |
|
|
factory $ImageSplitterStateCopyWith( |
|
|
|
|
|
ImageSplitterState value, $Res Function(ImageSplitterState) then) = |
|
|
|
|
|
|
|
|
factory $ImageSplitterStateCopyWith(ImageSplitterState value, $Res Function(ImageSplitterState) then) = |
|
|
_$ImageSplitterStateCopyWithImpl<$Res>; |
|
|
_$ImageSplitterStateCopyWithImpl<$Res>; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
class _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
|
|
|
implements $ImageSplitterStateCopyWith<$Res> { |
|
|
|
|
|
|
|
|
class _$ImageSplitterStateCopyWithImpl<$Res> implements $ImageSplitterStateCopyWith<$Res> { |
|
|
_$ImageSplitterStateCopyWithImpl(this._value, this._then); |
|
|
_$ImageSplitterStateCopyWithImpl(this._value, this._then); |
|
|
|
|
|
|
|
|
final ImageSplitterState _value; |
|
|
final ImageSplitterState _value; |
|
|
|
|
|
|
|
|
// ignore: unused_field |
|
|
// ignore: unused_field |
|
|
final $Res Function(ImageSplitterState) _then; |
|
|
final $Res Function(ImageSplitterState) _then; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
abstract class $ImageSplitterIdleCopyWith<$Res> { |
|
|
abstract class $ImageSplitterIdleCopyWith<$Res> { |
|
|
factory $ImageSplitterIdleCopyWith( |
|
|
|
|
|
ImageSplitterIdle value, $Res Function(ImageSplitterIdle) then) = |
|
|
|
|
|
|
|
|
factory $ImageSplitterIdleCopyWith(ImageSplitterIdle value, $Res Function(ImageSplitterIdle) then) = |
|
|
_$ImageSplitterIdleCopyWithImpl<$Res>; |
|
|
_$ImageSplitterIdleCopyWithImpl<$Res>; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
class _$ImageSplitterIdleCopyWithImpl<$Res> |
|
|
|
|
|
extends _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
|
|
|
|
|
|
class _$ImageSplitterIdleCopyWithImpl<$Res> extends _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
implements $ImageSplitterIdleCopyWith<$Res> { |
|
|
implements $ImageSplitterIdleCopyWith<$Res> { |
|
|
_$ImageSplitterIdleCopyWithImpl( |
|
|
|
|
|
ImageSplitterIdle _value, $Res Function(ImageSplitterIdle) _then) |
|
|
|
|
|
|
|
|
_$ImageSplitterIdleCopyWithImpl(ImageSplitterIdle _value, $Res Function(ImageSplitterIdle) _then) |
|
|
: super(_value, (v) => _then(v as ImageSplitterIdle)); |
|
|
: super(_value, (v) => _then(v as ImageSplitterIdle)); |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
@ -151,8 +145,7 @@ class _$ImageSplitterIdle implements ImageSplitterIdle { |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
|
bool operator ==(dynamic other) { |
|
|
bool operator ==(dynamic other) { |
|
|
return identical(this, other) || |
|
|
|
|
|
(other.runtimeType == runtimeType && other is ImageSplitterIdle); |
|
|
|
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType && other is ImageSplitterIdle); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
@ -163,9 +156,7 @@ class _$ImageSplitterIdle implements ImageSplitterIdle { |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult Function() $default, { |
|
|
TResult Function() $default, { |
|
|
required TResult Function() generating, |
|
|
required TResult Function() generating, |
|
|
required TResult Function( |
|
|
|
|
|
Image image, List<Image> images, PaletteGenerator palette) |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
required TResult Function(Image image, List<Image> images, PaletteGenerator palette) complete, |
|
|
required TResult Function(String? message) error, |
|
|
required TResult Function(String? message) error, |
|
|
}) { |
|
|
}) { |
|
|
return $default(); |
|
|
return $default(); |
|
@ -176,8 +167,7 @@ class _$ImageSplitterIdle implements ImageSplitterIdle { |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
}) { |
|
|
}) { |
|
|
return $default?.call(); |
|
|
return $default?.call(); |
|
@ -188,8 +178,7 @@ class _$ImageSplitterIdle implements ImageSplitterIdle { |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
required TResult orElse(), |
|
|
required TResult orElse(), |
|
|
}) { |
|
|
}) { |
|
@ -243,17 +232,14 @@ abstract class ImageSplitterIdle implements ImageSplitterState { |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
abstract class $ImageSplitterGeneratingCopyWith<$Res> { |
|
|
abstract class $ImageSplitterGeneratingCopyWith<$Res> { |
|
|
factory $ImageSplitterGeneratingCopyWith(ImageSplitterGenerating value, |
|
|
|
|
|
$Res Function(ImageSplitterGenerating) then) = |
|
|
|
|
|
|
|
|
factory $ImageSplitterGeneratingCopyWith(ImageSplitterGenerating value, $Res Function(ImageSplitterGenerating) then) = |
|
|
_$ImageSplitterGeneratingCopyWithImpl<$Res>; |
|
|
_$ImageSplitterGeneratingCopyWithImpl<$Res>; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
class _$ImageSplitterGeneratingCopyWithImpl<$Res> |
|
|
|
|
|
extends _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
|
|
|
|
|
|
class _$ImageSplitterGeneratingCopyWithImpl<$Res> extends _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
implements $ImageSplitterGeneratingCopyWith<$Res> { |
|
|
implements $ImageSplitterGeneratingCopyWith<$Res> { |
|
|
_$ImageSplitterGeneratingCopyWithImpl(ImageSplitterGenerating _value, |
|
|
|
|
|
$Res Function(ImageSplitterGenerating) _then) |
|
|
|
|
|
|
|
|
_$ImageSplitterGeneratingCopyWithImpl(ImageSplitterGenerating _value, $Res Function(ImageSplitterGenerating) _then) |
|
|
: super(_value, (v) => _then(v as ImageSplitterGenerating)); |
|
|
: super(_value, (v) => _then(v as ImageSplitterGenerating)); |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
@ -272,8 +258,7 @@ class _$ImageSplitterGenerating implements ImageSplitterGenerating { |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
|
bool operator ==(dynamic other) { |
|
|
bool operator ==(dynamic other) { |
|
|
return identical(this, other) || |
|
|
|
|
|
(other.runtimeType == runtimeType && other is ImageSplitterGenerating); |
|
|
|
|
|
|
|
|
return identical(this, other) || (other.runtimeType == runtimeType && other is ImageSplitterGenerating); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
@ -284,9 +269,7 @@ class _$ImageSplitterGenerating implements ImageSplitterGenerating { |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult Function() $default, { |
|
|
TResult Function() $default, { |
|
|
required TResult Function() generating, |
|
|
required TResult Function() generating, |
|
|
required TResult Function( |
|
|
|
|
|
Image image, List<Image> images, PaletteGenerator palette) |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
required TResult Function(Image image, List<Image> images, PaletteGenerator palette) complete, |
|
|
required TResult Function(String? message) error, |
|
|
required TResult Function(String? message) error, |
|
|
}) { |
|
|
}) { |
|
|
return generating(); |
|
|
return generating(); |
|
@ -297,8 +280,7 @@ class _$ImageSplitterGenerating implements ImageSplitterGenerating { |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
}) { |
|
|
}) { |
|
|
return generating?.call(); |
|
|
return generating?.call(); |
|
@ -309,8 +291,7 @@ class _$ImageSplitterGenerating implements ImageSplitterGenerating { |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
required TResult orElse(), |
|
|
required TResult orElse(), |
|
|
}) { |
|
|
}) { |
|
@ -364,18 +345,16 @@ abstract class ImageSplitterGenerating implements ImageSplitterState { |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
abstract class $ImageSplitterCompleteCopyWith<$Res> { |
|
|
abstract class $ImageSplitterCompleteCopyWith<$Res> { |
|
|
factory $ImageSplitterCompleteCopyWith(ImageSplitterComplete value, |
|
|
|
|
|
$Res Function(ImageSplitterComplete) then) = |
|
|
|
|
|
|
|
|
factory $ImageSplitterCompleteCopyWith(ImageSplitterComplete value, $Res Function(ImageSplitterComplete) then) = |
|
|
_$ImageSplitterCompleteCopyWithImpl<$Res>; |
|
|
_$ImageSplitterCompleteCopyWithImpl<$Res>; |
|
|
|
|
|
|
|
|
$Res call({Image image, List<Image> images, PaletteGenerator palette}); |
|
|
$Res call({Image image, List<Image> images, PaletteGenerator palette}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
class _$ImageSplitterCompleteCopyWithImpl<$Res> |
|
|
|
|
|
extends _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
|
|
|
|
|
|
class _$ImageSplitterCompleteCopyWithImpl<$Res> extends _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
implements $ImageSplitterCompleteCopyWith<$Res> { |
|
|
implements $ImageSplitterCompleteCopyWith<$Res> { |
|
|
_$ImageSplitterCompleteCopyWithImpl( |
|
|
|
|
|
ImageSplitterComplete _value, $Res Function(ImageSplitterComplete) _then) |
|
|
|
|
|
|
|
|
_$ImageSplitterCompleteCopyWithImpl(ImageSplitterComplete _value, $Res Function(ImageSplitterComplete) _then) |
|
|
: super(_value, (v) => _then(v as ImageSplitterComplete)); |
|
|
: super(_value, (v) => _then(v as ImageSplitterComplete)); |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
@ -432,26 +411,20 @@ class _$ImageSplitterComplete implements ImageSplitterComplete { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
|
int get hashCode => Object.hash( |
|
|
|
|
|
runtimeType, |
|
|
|
|
|
const DeepCollectionEquality().hash(image), |
|
|
|
|
|
const DeepCollectionEquality().hash(images), |
|
|
|
|
|
const DeepCollectionEquality().hash(palette)); |
|
|
|
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(image), |
|
|
|
|
|
const DeepCollectionEquality().hash(images), const DeepCollectionEquality().hash(palette)); |
|
|
|
|
|
|
|
|
@JsonKey(ignore: true) |
|
|
@JsonKey(ignore: true) |
|
|
@override |
|
|
@override |
|
|
$ImageSplitterCompleteCopyWith<ImageSplitterComplete> get copyWith => |
|
|
$ImageSplitterCompleteCopyWith<ImageSplitterComplete> get copyWith => |
|
|
_$ImageSplitterCompleteCopyWithImpl<ImageSplitterComplete>( |
|
|
|
|
|
this, _$identity); |
|
|
|
|
|
|
|
|
_$ImageSplitterCompleteCopyWithImpl<ImageSplitterComplete>(this, _$identity); |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
|
@optionalTypeArgs |
|
|
@optionalTypeArgs |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult Function() $default, { |
|
|
TResult Function() $default, { |
|
|
required TResult Function() generating, |
|
|
required TResult Function() generating, |
|
|
required TResult Function( |
|
|
|
|
|
Image image, List<Image> images, PaletteGenerator palette) |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
required TResult Function(Image image, List<Image> images, PaletteGenerator palette) complete, |
|
|
required TResult Function(String? message) error, |
|
|
required TResult Function(String? message) error, |
|
|
}) { |
|
|
}) { |
|
|
return complete(image, images, palette); |
|
|
return complete(image, images, palette); |
|
@ -462,8 +435,7 @@ class _$ImageSplitterComplete implements ImageSplitterComplete { |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
}) { |
|
|
}) { |
|
|
return complete?.call(image, images, palette); |
|
|
return complete?.call(image, images, palette); |
|
@ -474,8 +446,7 @@ class _$ImageSplitterComplete implements ImageSplitterComplete { |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
required TResult orElse(), |
|
|
required TResult orElse(), |
|
|
}) { |
|
|
}) { |
|
@ -524,32 +495,31 @@ class _$ImageSplitterComplete implements ImageSplitterComplete { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
abstract class ImageSplitterComplete implements ImageSplitterState { |
|
|
abstract class ImageSplitterComplete implements ImageSplitterState { |
|
|
const factory ImageSplitterComplete( |
|
|
|
|
|
Image image, List<Image> images, PaletteGenerator palette) = |
|
|
|
|
|
|
|
|
const factory ImageSplitterComplete(Image image, List<Image> images, PaletteGenerator palette) = |
|
|
_$ImageSplitterComplete; |
|
|
_$ImageSplitterComplete; |
|
|
|
|
|
|
|
|
Image get image; |
|
|
Image get image; |
|
|
|
|
|
|
|
|
List<Image> get images; |
|
|
List<Image> get images; |
|
|
|
|
|
|
|
|
PaletteGenerator get palette; |
|
|
PaletteGenerator get palette; |
|
|
|
|
|
|
|
|
@JsonKey(ignore: true) |
|
|
@JsonKey(ignore: true) |
|
|
$ImageSplitterCompleteCopyWith<ImageSplitterComplete> get copyWith => |
|
|
|
|
|
throw _privateConstructorUsedError; |
|
|
|
|
|
|
|
|
$ImageSplitterCompleteCopyWith<ImageSplitterComplete> get copyWith => throw _privateConstructorUsedError; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
abstract class $ImageSplitterErrorCopyWith<$Res> { |
|
|
abstract class $ImageSplitterErrorCopyWith<$Res> { |
|
|
factory $ImageSplitterErrorCopyWith( |
|
|
|
|
|
ImageSplitterError value, $Res Function(ImageSplitterError) then) = |
|
|
|
|
|
|
|
|
factory $ImageSplitterErrorCopyWith(ImageSplitterError value, $Res Function(ImageSplitterError) then) = |
|
|
_$ImageSplitterErrorCopyWithImpl<$Res>; |
|
|
_$ImageSplitterErrorCopyWithImpl<$Res>; |
|
|
|
|
|
|
|
|
$Res call({String? message}); |
|
|
$Res call({String? message}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/// @nodoc |
|
|
/// @nodoc |
|
|
class _$ImageSplitterErrorCopyWithImpl<$Res> |
|
|
|
|
|
extends _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
|
|
|
|
|
|
class _$ImageSplitterErrorCopyWithImpl<$Res> extends _$ImageSplitterStateCopyWithImpl<$Res> |
|
|
implements $ImageSplitterErrorCopyWith<$Res> { |
|
|
implements $ImageSplitterErrorCopyWith<$Res> { |
|
|
_$ImageSplitterErrorCopyWithImpl( |
|
|
|
|
|
ImageSplitterError _value, $Res Function(ImageSplitterError) _then) |
|
|
|
|
|
|
|
|
_$ImageSplitterErrorCopyWithImpl(ImageSplitterError _value, $Res Function(ImageSplitterError) _then) |
|
|
: super(_value, (v) => _then(v as ImageSplitterError)); |
|
|
: super(_value, (v) => _then(v as ImageSplitterError)); |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
@ -590,8 +560,7 @@ class _$ImageSplitterError implements ImageSplitterError { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@override |
|
|
@override |
|
|
int get hashCode => |
|
|
|
|
|
Object.hash(runtimeType, const DeepCollectionEquality().hash(message)); |
|
|
|
|
|
|
|
|
int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(message)); |
|
|
|
|
|
|
|
|
@JsonKey(ignore: true) |
|
|
@JsonKey(ignore: true) |
|
|
@override |
|
|
@override |
|
@ -603,9 +572,7 @@ class _$ImageSplitterError implements ImageSplitterError { |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult when<TResult extends Object?>( |
|
|
TResult Function() $default, { |
|
|
TResult Function() $default, { |
|
|
required TResult Function() generating, |
|
|
required TResult Function() generating, |
|
|
required TResult Function( |
|
|
|
|
|
Image image, List<Image> images, PaletteGenerator palette) |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
required TResult Function(Image image, List<Image> images, PaletteGenerator palette) complete, |
|
|
required TResult Function(String? message) error, |
|
|
required TResult Function(String? message) error, |
|
|
}) { |
|
|
}) { |
|
|
return error(message); |
|
|
return error(message); |
|
@ -616,8 +583,7 @@ class _$ImageSplitterError implements ImageSplitterError { |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult? whenOrNull<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
}) { |
|
|
}) { |
|
|
return error?.call(message); |
|
|
return error?.call(message); |
|
@ -628,8 +594,7 @@ class _$ImageSplitterError implements ImageSplitterError { |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult maybeWhen<TResult extends Object?>( |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? $default, { |
|
|
TResult Function()? generating, |
|
|
TResult Function()? generating, |
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? |
|
|
|
|
|
complete, |
|
|
|
|
|
|
|
|
TResult Function(Image image, List<Image> images, PaletteGenerator palette)? complete, |
|
|
TResult Function(String? message)? error, |
|
|
TResult Function(String? message)? error, |
|
|
required TResult orElse(), |
|
|
required TResult orElse(), |
|
|
}) { |
|
|
}) { |
|
@ -681,7 +646,7 @@ abstract class ImageSplitterError implements ImageSplitterState { |
|
|
const factory ImageSplitterError({String? message}) = _$ImageSplitterError; |
|
|
const factory ImageSplitterError({String? message}) = _$ImageSplitterError; |
|
|
|
|
|
|
|
|
String? get message; |
|
|
String? get message; |
|
|
|
|
|
|
|
|
@JsonKey(ignore: true) |
|
|
@JsonKey(ignore: true) |
|
|
$ImageSplitterErrorCopyWith<ImageSplitterError> get copyWith => |
|
|
|
|
|
throw _privateConstructorUsedError; |
|
|
|
|
|
|
|
|
$ImageSplitterErrorCopyWith<ImageSplitterError> get copyWith => throw _privateConstructorUsedError; |
|
|
} |
|
|
} |