create<T extends ParseObject> static method

Future<ParseLiveList<T>> create<T extends ParseObject>(
  1. QueryBuilder<T> query, {
  2. bool? listenOnAllSubItems,
  3. List<String>? listeningIncludes,
  4. bool lazyLoading = true,
  5. List<String>? preloadedColumns,
})

Implementation

static Future<ParseLiveList<T>> create<T extends ParseObject>(
  QueryBuilder<T> query, {
  bool? listenOnAllSubItems,
  List<String>? listeningIncludes,
  bool lazyLoading = true,
  List<String>? preloadedColumns,
}) {
  final ParseLiveList<T> parseLiveList = ParseLiveList<T>._(
    query,
    listenOnAllSubItems == true
        ? _toIncludeMap(
            query.limiters['include']?.toString().split(',') ?? <String>[])
        : _toIncludeMap(listeningIncludes ?? <String>[]),
    lazyLoading,
    preloadedColumns: preloadedColumns ?? const <String>[],
  );

  return parseLiveList._init().then((_) {
    return parseLiveList;
  });
}