Identifier constructor

Identifier(String type, String id)

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);
}