claude refactor
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
enum AccountStatus { undefined, loggedIn, loggedOut }
|
||||
|
||||
class AccountState {
|
||||
final AccountStatus status;
|
||||
const AccountState({this.status = AccountStatus.undefined});
|
||||
|
||||
AccountState copyWith({AccountStatus? status}) => AccountState(status: status ?? this.status);
|
||||
}
|
||||
Reference in New Issue
Block a user