DVInstallPrompt class

Holds the deferred browser event, and tells anyone who cares.

Static because the browser fires the event at the document, once, whenever it decides the app qualifies -- which is not at first frame, and not tied to any widget.

Properties

hashCode → int
The hash code for this object.
no setterinherited
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

Static Properties

available → bool
no setter
installed → bool
no setter

Static Methods

captureForTest({DVInstallOutcome outcome = DVInstallOutcome.accepted}) → void
listen(void onChanged(bool available)) → void Function()
Called when availability changes, and returns a function that stops it.
markInstalled() → void
Records that the app is running as an installed application.
markInstalledForTest() → void
offer() → void
Records that the browser offered an install.
resetForTest() → void
show() → Future<DVInstallOutcome>