mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 09:57:46 +00:00
17 lines
292 B
Dart
17 lines
292 B
Dart
class MnemoticItem {
|
|
MnemoticItem({String text, this.dic}) : _text = text;
|
|
|
|
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;
|
|
}
|