StaticUpdateSource class

A source backed by a fixed map. Useful for tests, demos, and kill switches where you want to ship a version bump without a server.

Implemented types

Constructors

StaticUpdateSource(Map<UpdateChannel, PrismVersion> latestByChannel)
Creates a static source.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
latestByChannel → Map<UpdateChannel, PrismVersion>
Latest version per channel.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchLatest() → Future<Map<UpdateChannel, PrismVersion>>
Fetches the latest version per channel.
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