UserBio constructor

UserBio(
  1. String val
)

Implementation

factory UserBio(String val) {
  if (val.isEmpty) {
    throw const FormatException('Must not be empty');
  } else if (val.length > 4096) {
    throw const FormatException('Must not be longer than 4096 symbols');
  }

  return UserBio._(val);
}