Attribute.add constructor
Attribute.add(
- Entity target,
- AttributeType attribute, {
- required String? uuid,
- required double? value,
- required String? name,
- AttributeModifier? modifyType = AttributeModifier.add,
adds a modifier with an uuid
Implementation
Attribute.add(
this.target,
this.attribute, {
required this.uuid,
required this.value,
required this.name,
this.modifyType = AttributeModifier.add,
}) : _type = _AttributeType.add,
assert(name != null),
assert(uuid != null),
assert(value != null);