get<T extends Object?> method

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

Gets a property by its name. If a generic type is specified, the property type will be validated against the type. Otherwise the result will be wrapped in Object.

Implementation

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