MemoText constructor

MemoText(
  1. String text
)

Implementation

MemoText(String text) {
  this._text = checkNotNull(text, "text cannot be null");

  int length = utf8.encode(text).length;
  if (length > 28) {
    throw MemoTooLongException("text must be <= 28 bytes. length=$length");
  }
}