feat: refactor code
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import 'daily_status.dart';
|
||||
import 'wallet_status.dart';
|
||||
|
||||
class WalletBlocState {
|
||||
final WalletStatus walletStatus;
|
||||
final DailyStatus dailyStatus;
|
||||
|
||||
WalletBlocState({required this.walletStatus, required this.dailyStatus});
|
||||
|
||||
factory WalletBlocState.initial() => WalletBlocState(
|
||||
walletStatus: WalletInitial(),
|
||||
dailyStatus: DailyInitial(),
|
||||
);
|
||||
|
||||
WalletBlocState copyWith({
|
||||
WalletStatus? walletStatus,
|
||||
DailyStatus? dailyStatus,
|
||||
}) =>
|
||||
WalletBlocState(
|
||||
walletStatus: walletStatus ?? this.walletStatus,
|
||||
dailyStatus: dailyStatus ?? this.dailyStatus,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user