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