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

count int?
Returns the count of the documents that match the query.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.