where property

List<WhereCondition>? where
final

Model properties to be interpreted by the Provider. When creating WhereConditions, the first positional fieldName argument should be the field name, not the name used between the provider and source (e.g. data['last_name']).

@Rest(name: "e-mail")
final String email;

// BAD:
Where('e-mail').contains('.org');

// GOOD:
Where('email').contains('.org');

By default, every WhereCondition should be presumed to be an and. For example, where: [Where.exact('id', 1), Where.exact('name', 'Thomas')] will only return results where the ID is 1 and the name is Thomas.

Implementation

final List<WhereCondition>? where;