mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
21 lines
351 B
Dart
21 lines
351 B
Dart
import 'package:sealed_annotations/sealed_annotations.dart';
|
|
|
|
@Sealed()
|
|
abstract class ViewState {}
|
|
|
|
class Idle implements ViewState {}
|
|
|
|
class HasStarted implements ViewState {}
|
|
|
|
class HasData implements ViewState {
|
|
final dynamic data;
|
|
|
|
HasData(this.data);
|
|
}
|
|
|
|
class HasError implements ViewState {
|
|
final String error;
|
|
|
|
HasError(this.error);
|
|
}
|