Attribute.set constructor

Attribute.set(
  1. Entity target,
  2. AttributeType attribute, {
  3. required double? value,
})

sets the base modifier to a value

Implementation

Attribute.set(
  this.target,
  this.attribute, {
  required this.value,
})  : _type = _AttributeType.set,
      assert(value != null);