AccessToken constructor

AccessToken(
  1. String type,
  2. String data,
  3. DateTime expiry
)

expiry must be a UTC DateTime.

Implementation

AccessToken(this.type, this.data, this.expiry) {
  if (!expiry.isUtc) {
    throw ArgumentError.value(
      expiry,
      'expiry',
      'The expiry date must be a Utc DateTime.',
    );
  }
}