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
actoraccepted the current version ofagreement. -
acceptances(
{required String actor, String? agreement}) → Future< List< DVAcceptance> > -
Acceptances by
actor, oldest first, optionally of oneagreement. -
acceptedInForce(
String agreement, {required String actor, required DateTime at}) → Future< DVAcceptance?> -
The acceptance that answers "did
actoraccept the version ofagreementin force onat?", or null when none does. An acceptance given afteratdoes 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
agreementin force onat: the latest known version that had taken effect by then, or null before the first. -
needsAcceptance(
String agreement, {required String actor}) → Future< bool> -
Whether
actorhas yet to accept the current version ofagreement. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pending(
{required String actor}) → Future< List< DVAgreement> > -
The agreements
actorhas 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