RoomMetadata constructor
RoomMetadata({
- required String name,
- required RoomArchetype archetype,
Creates a RoomMetadata object.
Implementation
RoomMetadata({
required String name,
required this.archetype,
}) : assert(name.isEmpty || Validators.isValidName(name),
"`name` must have a length between 1 and 32 characters (inclusive)."),
_originalName = name,
_name = name,
_originalArchetype = archetype;