cake_wallet/lib/src/domain/common/mnemotic_item.dart
2020-01-04 21:31:52 +02:00

19 lines
No EOL
299 B
Dart

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;
}