MemoText constructor Null safety
- String text
Implementation
MemoText(String text) {
this._text = text;
int length = utf8.encode(text).length;
if (length > 28) {
throw MemoTooLongException("text must be <= 28 bytes. length=$length");
}
}