Zone constructor
Zone({
- required ResourceType type,
- required String id,
- String idV1 = "",
- required List<
Relative> children, - required List<
Relative> services, - required RoomMetadata metadata,
Creates a Zone object.
Implementation
Zone({
required super.type,
required super.id,
this.idV1 = "",
required this.children,
required this.services,
required this.metadata,
}) : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
'"$idV1" is not a valid `idV1`'),
_originalChildren = children.map((child) => child.copyWith()).toList(),
_originalMetadata = metadata.copyWith();