mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 01:47:41 +00:00
8237b89d56
* seed phrase option UI * bch seed length option * eth seed lengh option * update preseed info * update localization files
26 lines
No EOL
581 B
Dart
26 lines
No EOL
581 B
Dart
import 'package:cake_wallet/generated/i18n.dart';
|
|
|
|
enum SeedPhraseLength {
|
|
twelveWords(12),
|
|
twentyFourWords(24);
|
|
|
|
const SeedPhraseLength(this.value);
|
|
final int value;
|
|
|
|
static SeedPhraseLength deserialize({required int raw}) =>
|
|
SeedPhraseLength.values.firstWhere((e) => e.value == raw);
|
|
|
|
@override
|
|
String toString() {
|
|
String label = '';
|
|
switch (this) {
|
|
case SeedPhraseLength.twelveWords:
|
|
label = '12 Words';
|
|
break;
|
|
case SeedPhraseLength.twentyFourWords:
|
|
label = '24 Words';
|
|
break;
|
|
}
|
|
return label;
|
|
}
|
|
} |