NmApiKey class

A personal API key (the secret itself is never kept).

Annotations

Constructors

NmApiKey({required String id, required String name, required String prefix, required String scope, required DateTime createdAt, DateTime? lastUsedAt, DateTime? expiresAt, bool revoked = false})
Creates an NmApiKey.
const

Properties

createdAt → DateTime
When the key was created.
final
expiresAt → DateTime?
When the key stops working; null if it does not expire.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Key id.
final
lastUsedAt → DateTime?
When the key was last used; null if never.
final
name → String
Name the user gave it.
final
prefix → String
Visible prefix of the secret.
final
revoked → bool
Revoked keys stay listed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → String
full or read_only.
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

Operators

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