operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Two snapshots are equal when they aggregate the same query and hold the same results under the same names (as aggregateQuerySnapshotEqual of the JS SDK): the order the aggregations were asked in does not matter.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is AggregateQuerySnapshot &&
        query.query == other.query.query &&
        const MapEquality<String, Object?>().equals(data(), other.data());