FakeLinkSource class

In-memory LinkSource to simulate incoming links in unit and widget tests.

Implemented types

Constructors

FakeLinkSource({Uri? initialLink, bool replayInitialLinkOnStream = false})

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListener → bool
no setter
Link reported as the one that launched the app.
getter/setter pair
replayInitialLinkOnStream → bool
Mimics platforms/plugins that also emit the launch link on the stream.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uriStream → Stream<Uri>
Links received while the app is running. Implementations may also replay the initial link here; the SDK de-duplicates it.
no setteroverride

Methods

emit(Uri uri) → void
Simulates the OS delivering uri to the running app.
The link that launched the app (cold start), or null.
override
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