RealmValue.from constructor
RealmValue.from(
- Object? o
Will throw ArgumentError
Implementation
factory RealmValue.from(Object? o) {
if (o == null ||
o is bool ||
o is String ||
o is int ||
o is Float ||
o is double ||
o is RealmObjectMarker ||
o is DateTime ||
o is ObjectId ||
// o is Decimal128 || // not supported yet
o is Uuid) {
return RealmValue._(o);
} else {
throw ArgumentError.value(o, 'o', 'Unsupported type');
}
}