mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
19 lines
299 B
Dart
19 lines
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;
|
||
|
}
|