Attribute.add constructor

Attribute.add(
  1. Entity target,
  2. AttributeType attribute, {
  3. required String? uuid,
  4. required double? value,
  5. required String? name,
  6. 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);