name property
String
get
name
Human readable name of a resource.
minLength: 1 – maxLength: 32
Throws InvalidNameException if name
is set to a string that does not
have a length of 1 - 32 (inclusive).
Implementation
String get name => _name;
set
name
(String name)
Implementation
set name(String name) {
if (Validators.isValidName(name)) {
_name = name;
} else {
throw InvalidNameException.withValue(name);
}
}