IsUpdateAvailableProviderState class

Provides whether an update is available.

Resolves to true if an update is available, false otherwise.

Inheritance

Constructors

IsUpdateAvailableProviderState()

Properties

future → Future<bool>
Obtains a Future that resolves with the first state value that is not AsyncLoading.
read-onlyinherited
hashCode → int
The hash code for this object.
read-onlyinherited
ref → AsyncNotifierProviderRef<bool>
The Ref from the provider associated with this AsyncNotifier.
read-onlyinherited
releaseRepository ↔ ReleaseRepository
The ReleaseRepository instance to use.
latefinal
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
state ↔ AsyncValue<bool>
The value currently exposed by this AsyncNotifier.
read / writeinherited

Methods

build() → FutureOr<bool>
Initialize an AsyncNotifier.
override
checkForUpdates() → Future<void>
Checks whether an update is available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
update(FutureOr<bool> cb(bool), {FutureOr<bool> onError(Object err, StackTrace stackTrace)?}) → Future<bool>
A function to update state from its previous value, while abstracting loading/error cases for state.
inherited
updateShouldNotify(AsyncValue<bool> previous, AsyncValue<bool> next) → bool
A method invoked when the state exposed by this AsyncNotifier changes.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited