DVAgreement class final

One agreement as dartvel.agreements declares it.

Constructors

DVAgreement({required String id, required String version, required String route})
version is a date, YYYY-MM-DD, that somebody sets: a typo fix is not a new agreement, and a hash of the document would make it one.

Properties

effective → DateTime
The day the version took effect.
no setter
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
route → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate() → void
Throws when version is not a real calendar date.

Operators

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

Static Methods

fromConfig(Map<String, Object?> agreements) → List<DVAgreement>
Reads dartvel.agreements from pubspec.yaml.