GroupComputation class

Defines the structure of grouped object computations. Basically, it provides aggregate calculation instructions to QueryBuilder.compute method

Constructors

GroupComputation({required String name, required GroupComputationType type, String? expression, Direction? sort})

Properties

expression String?
The computation expression string. Except count, expression string is required for all other computation types.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the computation which will be reported in the result of QueryBuilder.compute method execution. If you are defining more than one group computation, then their names need to be unique.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sort Direction?
Defines the sort direction of computed field. If sort direction is specified as either asc or desc, computed groups will be sorted accordingly.
getter/setter pair
type GroupComputationType
Defines the type of the computation
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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