UserEmail constructor

UserEmail(
  1. String value
)

Implementation

UserEmail(String value) : super(value.trim()) {
  if (!EmailValidator.validate(val)) {
    throw FormatException('Does not match validation RegExp: `$val`');
  }
}