setValue abstract method

void setValue(
  1. dynamic instance,
  2. dynamic value
)

Sets the value of this field on the given instance.

  • If the field is static, instance must be null.
  • If the field is instance-based, instance must be a valid object.

Throws if the field is final, const, or cannot be written to.

Implementation

void setValue(dynamic instance, dynamic value);