AggregateQuerySnapshotPlatform class
AggregateQuerySnapshotPlatform represents a response to an AggregateQueryPlatform request.
- Inheritance
-
- Object
- PlatformInterface
- AggregateQuerySnapshotPlatform
Constructors
-
AggregateQuerySnapshotPlatform({required int? count, required List<
AggregateQueryResponse> sum, required List<AggregateQueryResponse> average})
Properties
Methods
-
getAverage(
String field) → double? - Returns the average of the documents that match the query. The key is the field name and the value is the average.
-
getSum(
String field) → double? - Returns the sum of the documents that match the query. The key is the field name and the value is the sum.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
verifyExtends(
AggregateQuerySnapshotPlatform instance) → void -
Throws an AssertionError if
instance
does not extend AggregateQuerySnapshotPlatform.