ReadableAsyncBeaconUtils<T> extension

on

Properties

isData bool

Available on ReadableBeacon<AsyncValue<T>>, provided by the ReadableAsyncBeaconUtils extension

Returns true if this is AsyncData. This is equivalent to beacon.peek().isData.
no setter
isError bool

Available on ReadableBeacon<AsyncValue<T>>, provided by the ReadableAsyncBeaconUtils extension

Returns true if this is AsyncError. This is equivalent to beacon.peek().isError.
no setter
isIdle bool

Available on ReadableBeacon<AsyncValue<T>>, provided by the ReadableAsyncBeaconUtils extension

Returns true if this is AsyncIdle. This is equivalent to beacon.peek().isIdle.
no setter
isIdleOrLoading bool

Available on ReadableBeacon<AsyncValue<T>>, provided by the ReadableAsyncBeaconUtils extension

Returns true if this is AsyncIdle or AsyncLoading. This is equivalent to beacon.peek().isIdleOrLoading.
no setter
isLoading bool

Available on ReadableBeacon<AsyncValue<T>>, provided by the ReadableAsyncBeaconUtils extension

Returns true if this is AsyncLoading. This is equivalent to beacon.peek().isLoading.
no setter
lastData → T?

Available on ReadableBeacon<AsyncValue<T>>, provided by the ReadableAsyncBeaconUtils extension

Returns the last data that was successfully loaded This is useful when you want to display old data when in AsyncError or AsyncLoading state. equivalent to beacon.peek().lastData
no setter

Methods

unwrapValue() → T

Available on ReadableBeacon<AsyncValue<T>>, provided by the ReadableAsyncBeaconUtils extension

If this beacon's value is AsyncData, returns it's value. Otherwise throws an exception. equivalent to beacon.peek().unwrap()
unwrapValueOrNull() → T?

Available on ReadableBeacon<AsyncValue<T>>, provided by the ReadableAsyncBeaconUtils extension

If this beacon's value is AsyncData, returns it's value. Otherwise returns null. equivalent to beacon.peek().unwrapOrNull()