set<T extends Object?> method

void set<T extends Object?>(
  1. String name,
  2. T value
)

Sets a property by its name. The supplied value must be assignable to the property type, otherwise an exception will be thrown.

Implementation

void set<T extends Object?>(String name, T value) {
  _validatePropertyType<T>(name, RealmCollectionType.none, relaxedNullability: true);
  RealmObjectBase.set(_obj, name, value);
}