Query constructor
const
Query({
- QueryAction? action,
- List<
ProviderQuery< forProviders = const [],Provider< >Model> > - int? limit,
- List<
LimitBy> limitBy = const [], - int? offset,
- @Deprecated('Use limit, offset, limitBy, orderBy, or forProviders instead.') Map<
String, dynamic> providerArgs = const {}, - List<
OrderBy> orderBy = const [], - List<
WhereCondition> ? where,
An interface to request data from a Provider
or ModelRepository
.
Implementation
const Query({
this.action,
this.forProviders = const [],
this.limit,
this.limitBy = const [],
this.offset,
@Deprecated('Use limit, offset, limitBy, orderBy, or forProviders instead.')
this.providerArgs = const {},
this.orderBy = const [],
this.where,
}) : assert(limit == null || limit > -1, 'limit must be greater than 0'),
assert(offset == null || offset > -1, 'offset must be greater than 0');