DVWebPushSubscription class

The subscription a browser hands back from PushManager.subscribe().

p256dh and auth arrive base64url-encoded in the subscription JSON, which is why fromJson is the usual way to build one.

Constructors

DVWebPushSubscription({required String endpoint, required Uint8List p256dh, required Uint8List auth})
DVWebPushSubscription.fromJson(Map<String, Object?> json)
Reads the shape PushSubscription.toJSON() produces.
factory

Properties

auth → Uint8List
The subscription's authentication secret (16 bytes).
final
endpoint → String
Where the push service accepts the message.
final
hashCode → int
The hash code for this object.
no setterinherited
p256dh → Uint8List
The user agent's P-256 public key, uncompressed (65 bytes).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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