valuable library
Classes
-
FutureValuable<
Output, Res> - A Valuable that depends on a Future
-
HistorizedStatefulValuable<
T> -
HistorizedValuable<
T> - Contract class for Valuable that can maintain an history
-
HistorizedValuableLinker<
T> -
ReWritableHistorizedValuable<
T> - Contract class for StatefulValuable that provide rewritable history management
-
StatefulValuable<
Output> - A Valuable that manage a state.
-
StreamValuable<
Output, Msg> - A Valuable that remains on a Stream
-
UnmodifiableQueueBase<
E> -
UnmodifiableQueueView<
E> -
Valuable<
Output> - Main class Valuable
-
ValuableAsyncData<
T> - Representation of a valid data provided by an async process (Future, Stream, ...)
-
ValuableAsyncError<
T> - Representation of an error that occured during an async process
-
ValuableAsyncNoData<
T> - Representation of a momentum when no data is provided, and no error occured
-
ValuableAsyncValue<
T> - Provide a safe representation of an async value
- ValuableBoolGroup
- A class to make logical operations with Valuable
- ValuableCallback
- User-defined callback that can watch Valuable to be automatically re-call
-
ValuableCaseItem<
Output> -
ValuableCompare<
T> - A class to map Valuables comparison to a Valuable<bool>
- ValuableConsumer
- A widget that is used to watch Valuable inside a widget tree
- ValuableContext
- Immutable object that let transit informations about the current context of a valuable's value reading
-
ValuableHistoryNode<
T> - Valuable value representation at a certain momentum
-
ValuableIf<
Output> -
ValuableLinker<
Output> - A special Valuable that can link to another Valuable to provide a value
-
ValuableNumOperation<
Output extends num> - Class to do calculus with numeric operands, and obtain a Valuable
- ValuableStringOperation
- Operations for String
-
ValuableSwitch<
Switch, Output> - ValuableWidget
- ValuableWidgetElement
Enums
- CompareOperator
- Comparison operator
- NumOperator
- Calculus operators for num operands
- StringOperator
- Possible operations between Valuable
Mixins
-
StatefulValuableMixin<
Output> - Provide some method implementations to fullfil StatefulValuable contract
-
UnmodifiableQueueMixin<
T> - Inspired by the implementation UnmodifiableListBaseMixin from
-
ValuableLinkerMixin<
Output> - Provide some method implementations to fullfil ValuableLinker contract
Extensions
-
BoolOperators
on Valuable<
bool> - Extension to define operators for Valuable
-
BoolStateOperations
on StatefulValuable<
bool> - Available operations on StatefulValuable
-
DoubleStateOperations
on StatefulValuable<
double> - Available operations on StatefulValuable
-
FutureExtension
on Future<
T> -
IntStateOperations
on StatefulValuable<
int> - Available operations on StatefulValuable
- ListenableValuable on L
- Method to transform a ValueListenable to a Valuable
-
ListOperators
on Valuable<
List< E> > -
NumOperators
on Valuable<
T> - Extension to define operators for Valuable
-
NumStateOperations
on StatefulValuable<
T> - Available operations on StatefulValuable
-
StreamExtension
on Stream<
T> -
StringOperators
on Valuable<
String> - Extension to define operators for Valuable
-
ValuableFutureExtension
on Valuable<
Future< T> > -
ValuableStreamExtension
on Valuable<
Stream< T> > - ValuableWatcherExtension on ValuableWatcher
- Provide extension on ValuableWatcher
-
ValueListenableValuable
on ValueListenable<
T> - Method to transform a ValueListenable to a Valuable
-
WidgetValuable
on Valuable<
T>
Properties
-
boolFalse
→ Valuable<
bool> -
Shortcut to get a valuable with the value false
final
-
boolTrue
→ Valuable<
bool> -
Shortcut to get a valuable with the value true
final
-
doubleZero
→ Valuable<
double> -
Shortcut to get a valuable with the double value 0.0
final
-
intZero
→ Valuable<
int> -
Shortcut to get a valuable with the int value 0
final
-
stringEmpty
→ Valuable<
String> -
Shortcut to get a valuable with the value of an empty string
final
Typedefs
-
FutureValuableAsyncValue<
Res> = FutureValuable< ValuableAsyncValue< Res> , Res> - Equivalent to a FutureValuable<ValuableAsyncValue<Res>, Res>
-
StreamValuableAsyncValue<
Res> = StreamValuable< ValuableAsyncValue< Res> , Res> - Equivalent to a StreamValuable<ValuableAsyncValue<Res>, Res>
- ValuableCallbackPrototype = void Function(ValuableWatcher watch, {ValuableContext? valuableContext})
- ValuableConsumerBuilder = Widget Function(BuildContext context, ValuableWatcher watch, Widget? child)
- Contract for the implementation function needed to build Widget for a ValuableConsumer
-
ValuableGetFutureError<
Output> = Output Function(ValuableContext? context, Object error, StackTrace stackTrace) - Method prototype for a Future error
-
ValuableGetFutureLoading<
Output> = Output Function(ValuableContext? context) - Method prototype to get a value while a Future is not complete/in error
-
ValuableGetFutureResult<
Output, Res> = Output Function(ValuableContext? context, Res result) - Method prototype for a Future complete
-
ValuableGetStreamData<
Output, Msg> = Output Function(ValuableContext? context, Msg data) - Method prototype for onData of the Stream
-
ValuableGetStreamDone<
Output> = Output Function(ValuableContext? context) - Method prototype for onDone of the Stream
-
ValuableGetStreamError<
Output> = Output Function(ValuableContext? context, Object error, StackTrace stackTrace) - Method prototype for onError of the Stream
-
ValuableParentWatcher<
T> = T Function(ValuableWatcher watch, {ValuableContext? valuableContext}) -
ValuableWatcher
= T Function<
T>(Valuable< T> valuable, {ValuableWatcherSelector? selector, ValuableContext? valuableContext}) -
ValuableWatcherSelector<
T> = bool Function(Valuable< T> valuable, T previousWatchedValue)
Exceptions / Errors
- ValuableException
- For Valuable to have its own Exceptions
- ValuableIllegalUseException
- For case of illegal use when using Valuable