DVLevelLimit class

A limit on a level: how many of something exist right now.

Seats, projects, connected devices. Counted when asked, never recorded -- a level already has an authoritative answer, and a counter kept beside it drifts the first time a row is removed by a cascade or a restore.

Constructors

DVLevelLimit(String name, {required FutureOr<num> count(String tenant), required FutureOr<num?> limit(String tenant), required DVQuota atLimit})
const

Properties

atLimit → DVQuota
final
count → FutureOr<num> Function(String tenant)
final
hashCode → int
The hash code for this object.
no setterinherited
limit → FutureOr<num?> Function(String tenant)
The tenant's limit, or null when its plan sets none.
final
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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