ParseLiveElement<T extends ParseObject> constructor

ParseLiveElement<T extends ParseObject>(
  1. T object, {
  2. bool loaded = false,
  3. List<String>? includeObject,
})

Implementation

ParseLiveElement(T object, {bool loaded = false, List<String>? includeObject})
    : super(object,
          loaded: loaded,
          updatedSubItems:
              ParseLiveList._toIncludeMap(includeObject ?? <String>[])) {
  _includes = ParseLiveList._toIncludeMap(includeObject ?? <String>[]);
  queryBuilder = QueryBuilder<T>(object.clone(<String, dynamic>{}))
    ..whereEqualTo(keyVarObjectId, object.objectId);
  if (includeObject != null) {
    queryBuilder.includeObject(includeObject);
  }
  _init(object, loaded: loaded, includeObject: includeObject);
}