ParseRelation<T extends ParseObject> constructor
ParseRelation<T extends ParseObject> ({
- required ParseObject parent,
- required String key,
Implementation
ParseRelation({required ParseObject parent, required String key}) {
if (!parent.containsKey(key)) {
throw 'Invalid Relation key name';
}
_targetClass = parent.get<ParseRelation>(key)!.getTargetClass;
_parent = parent;
_key = key;
_parentObjectId = parent.objectId!;
}