LightMetadata constructor
LightMetadata({
- required String name,
- required LightArchetype archetype,
- required int fixedMired,
Creates a LightMetadata object.
Implementation
LightMetadata({
required String name,
required this.archetype,
required this.fixedMired,
}) : assert(name.isEmpty || Validators.isValidName(name),
"`name` must have a length between 1 and 32 characters (inclusive)."),
assert(Validators.isValidMired(fixedMired),
"`fixedMired` must be between 153 and 500 (inclusive)."),
_originalName = name,
_name = name,
_originalArchetype = archetype;