DVMeterStore class abstract
Where meter records are kept.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
DVMeterRecord record) → Future< bool> -
Stores
record. Returns false when the store itself refused it as a duplicate, which a database does when two instances race. -
hasKey(
{required String tenant, required String meter, required String key, required Iterable< DVMeterPeriod> periods}) → Future<bool> -
Whether a record with
keyexists fortenantandmeterin any ofperiods. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordsIn(
{required String tenant, required String meter, required DVMeterPeriod period}) → Future< List< DVMeterRecord> > -
The records counted in
periodfortenantandmeter. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited