You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
620 B

import 'package:flutter/material.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:palette_generator/palette_generator.dart';
part 'image_splitter_state.freezed.dart';
@freezed
class ImageSplitterState with _$ImageSplitterState {
const factory ImageSplitterState() = ImageSplitterIdle;
const factory ImageSplitterState.generating() = ImageSplitterGenerating;
const factory ImageSplitterState.complete(Image image, List<Image> images, PaletteGenerator palette) =
ImageSplitterComplete;
const factory ImageSplitterState.error({String? message}) = ImageSplitterError;
}