LightMetadata constructor

LightMetadata({
  1. required String name,
  2. required LightArchetype archetype,
  3. 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;