Files
TravelMate/lib/blocs/account/account_state.dart
Dayron 4edbd1cf34 feat: Add User and UserBalance models with serialization methods
feat: Implement BalanceRepository for group balance calculations

feat: Create ExpenseRepository for managing expenses

feat: Add services for handling expenses and storage operations

fix: Update import paths for models in repositories and services

refactor: Rename CountContent to AccountContent in HomePage

chore: Add StorageService for image upload and management
2025-10-21 16:02:58 +02:00

40 lines
804 B
Dart

import 'package:equatable/equatable.dart';
import '../../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];
}