cake_wallet/lib/src/domain/common/mnemotic_item.dart

18 lines
292 B
Dart
Raw Normal View History

2020-01-04 19:31:52 +00:00
class MnemoticItem {
2020-01-08 12:26:34 +00:00
MnemoticItem({String text, this.dic}) : _text = text;
2020-01-04 19:31:52 +00:00
String get text => _text;
final List<String> dic;
String _text;
bool isCorrect() => dic.contains(text);
void changeText(String text) {
_text = text;
}
@override
String toString() => text;
2020-01-08 12:26:34 +00:00
}