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

19 lines
299 B
Dart
Raw Normal View History

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