2024-01-08 21:37:08 -05:00
|
|
|
import 'package:meta/meta.dart';
|
2024-01-18 19:44:15 -05:00
|
|
|
|
2024-06-13 14:52:34 -04:00
|
|
|
import 'unlocked_account_info.dart';
|
2024-01-08 21:37:08 -05:00
|
|
|
|
|
|
|
enum AccountInfoStatus {
|
|
|
|
noAccount,
|
|
|
|
accountInvalid,
|
|
|
|
accountLocked,
|
|
|
|
accountReady,
|
|
|
|
}
|
|
|
|
|
|
|
|
@immutable
|
|
|
|
class AccountInfo {
|
|
|
|
const AccountInfo({
|
|
|
|
required this.status,
|
|
|
|
required this.active,
|
2024-06-13 14:52:34 -04:00
|
|
|
required this.unlockedAccountInfo,
|
2024-01-08 21:37:08 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
final AccountInfoStatus status;
|
|
|
|
final bool active;
|
2024-06-13 14:52:34 -04:00
|
|
|
final UnlockedAccountInfo? unlockedAccountInfo;
|
2024-01-08 21:37:08 -05:00
|
|
|
}
|