Identifier constructor
Both type
and id
must be non-empty strings.
Implementation
Identifier(String this.type, String this.id) {
if (id == null || id.isEmpty) throw ArgumentError();
(const Naming()).enforce(type);
}
Both type
and id
must be non-empty strings.
Identifier(String this.type, String this.id) {
if (id == null || id.isEmpty) throw ArgumentError();
(const Naming()).enforce(type);
}