DVAgreements class

The declared agreements, and every acceptance of them.

Constructors

DVAgreements({required List<DVAgreement> agreements, required DVDatabaseAdapter database, DateTime clock()?})

Properties

agreements → List<DVAgreement>
final
database → DVDatabaseAdapter
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept(String agreement, {required String actor, String? tenant}) → Future<DVAcceptance>
Records that actor accepted the current version of agreement.
acceptances({required String actor, String? agreement}) → Future<List<DVAcceptance>>
Acceptances by actor, oldest first, optionally of one agreement.
acceptedInForce(String agreement, {required String actor, required DateTime at}) → Future<DVAcceptance?>
The acceptance that answers "did actor accept the version of agreement in force on at?", or null when none does. An acceptance given after at does not answer for it.
ensureSchema() → Future<void>
Creates the tables and remembers the versions configured now.
inForce(String agreement, {required DateTime at}) → Future<String?>
The version of agreement in force on at: the latest known version that had taken effect by then, or null before the first.
needsAcceptance(String agreement, {required String actor}) → Future<bool>
Whether actor has yet to accept the current version of agreement.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pending({required String actor}) → Future<List<DVAgreement>>
The agreements actor has yet to accept, for the application to gate on where it chooses.
privacyAdapter() → DVPrivacyAdapter
Export carries the subject's acceptances; erasure keeps them as evidence under the pseudonym.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

table → const String
versionsTable → const String