getSet<T extends Object?> method

RealmSet<T> getSet<T extends Object?>(
  1. String name
)

Gets a set by the property name. If a generic type is specified, the property type will be validated against the type. Otherwise, a RealmSet<Object?> will be returned.

Implementation

RealmSet<T> getSet<T extends Object?>(String name) {
  _validatePropertyType<T>(name, RealmCollectionType.set);
  return RealmObjectBase.get<T>(_obj, name) as RealmSet<T>;
}