setNullableFor method

void setNullableFor(
  1. O object,
  2. T? v
)

Sets this field value, allowing a nullable value. Throws an ArgumentError if v can't be null. See set.

Implementation

void setNullableFor(O object, T? v) {
  final setterAccessor = _resolveSetterAccessor();
  final setter = setterAccessor(object);
  _callSetterNullable(setter, v);
}