get<T extends Object?> method
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;
}