40 lines
809 B
Dart
40 lines
809 B
Dart
import 'package:equatable/equatable.dart';
|
|
import '../../data/models/account.dart';
|
|
|
|
abstract class AccountState extends Equatable {
|
|
const AccountState();
|
|
|
|
@override
|
|
List<Object?> get props => [];
|
|
}
|
|
|
|
class AccountInitial extends AccountState {}
|
|
|
|
class AccountLoading extends AccountState {}
|
|
|
|
class AccountsLoaded extends AccountState {
|
|
final List<Account> accounts;
|
|
|
|
const AccountsLoaded(this.accounts);
|
|
|
|
@override
|
|
List<Object?> get props => [accounts];
|
|
}
|
|
|
|
class AccountOperationSuccess extends AccountState {
|
|
final String message;
|
|
|
|
const AccountOperationSuccess(this.message);
|
|
|
|
@override
|
|
List<Object?> get props => [message];
|
|
}
|
|
|
|
class AccountError extends AccountState {
|
|
final String message;
|
|
|
|
const AccountError(this.message);
|
|
|
|
@override
|
|
List<Object?> get props => [message];
|
|
} |