name property
String
get
name
Human readable name of a resource.
Length: 1 - 32 chars
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);
}
}