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.
 
 
 
 
 
 

13 lines
599 B

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:my_flutter_puzzle/models/puzzle_data.dart';
part 'multi_puzzle_state.freezed.dart';
@freezed
class MultiPuzzleState with _$MultiPuzzleState {
const factory MultiPuzzleState() = MultiPuzzleIdle;
const factory MultiPuzzleState.initializing() = MultiPuzzleInitializing;
const factory MultiPuzzleState.current(PuzzleData puzzleData) = MultiPuzzleCurrent;
const factory MultiPuzzleState.solved(PuzzleData puzzleData) = MultiPuzzleSolved;
const factory MultiPuzzleState.error({String? message}) = MultiPuzzleError;
}