StoredDevice class
What the package stores: the credential, and what it was registered with (to skip registering again when nothing changed).
Constructors
Properties
- clientKey → String
-
final
- credential → String
-
X-FrontFace-Device.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- pushToken → String
-
final
- registeredAt → DateTime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secret → String
-
final
- visitorId → String
-
final
Methods
-
encode(
) → String -
isFresh(
{required String pushToken, required String visitorId, required String clientKey, required DateTime now, Duration maxAge = const Duration(hours: 24)}) → bool -
Registered with these, less than
maxAgeago: no need to register again. -
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
Static Methods
-
decode(
String? value) → StoredDevice? - Null for anything that is not a value this package wrote.