ParseRelation<T extends ParseObject> class abstract

Constructors

ParseRelation({required ParseObject parent, required String key})
factory
ParseRelation.fromJson(Map<String, dynamic> map, {ParseObject? parent, String? key})
factory

Properties

getTargetClass String
The className of the target objects.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setTargetClass String
Will work only if the current target class is null, otherwise will throw ParseRelationException with the message: The target class can not be modified if it is already set
no getter
targetClass String?
The className of the target objects.
no setter

Methods

add(T parseObject) → void
Add object to this relation
addAll(List<T> parseObjects) → void
Add objects to this relation.
getKey() String
getParent() ParseObject
getQuery() QueryBuilder<ParseObject>
Gets a query that can be used to query the objects in this relation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(T parseObject) → void
Remove object from this relation
removeAll(List<T> parseObjects) → void
Remove objects from this relation
toJson({bool full = false}) Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited