QueryBuilder<T extends ParseObject>.copy constructor

QueryBuilder<T extends ParseObject>.copy(
  1. QueryBuilder<T> query
)

Implementation

factory QueryBuilder.copy(QueryBuilder<T> query) {
  QueryBuilder<T> copy = QueryBuilder(query.object);
  copy.queries = query.queries
      .map((MapEntry<String, dynamic> entry) =>
          MapEntry<String, dynamic>(entry.key, entry.value.toString()))
      .toList();
  query.limiters.forEach((String key, dynamic value) =>
      copy.limiters.putIfAbsent(key, () => value.toString()));
  return copy;
}