Projection class

Represents a projection that can be added to a query.

Implemented types

Constructors

Projection(String propertyName, {bool distinct = false})
Creates a projection on the property named propertyName, and distinct values will be returned if distinct is set to true.
const

Properties

distinct bool
Set to true whether the query should return distinct results based on this property.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
propertyName String
The name of the property on which the projection should be made.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toApiObject() Projection
override
toPropertyReference() PropertyReference
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromProtocol(Query query) List<Projection>
Extracts the list of projections from the API level query object. [...]