acceptable library

Classes

AcceptableStatefulWidget
StatefulWidget which is extended in order to receive the change of Value provided by Provider before every rebuild times so that the value can be converted to suitable data for UI.
AcceptableStatefulWidgetState<T extends AcceptableStatefulWidget>
State for AcceptableStatefulWidget. Every subclasses of AcceptableStatefulWidget must return an object of AcceptableStatefulWidgetState in its createState.

Typedefs

Accept = void Function<Value, T>({Apply<T>? apply, Perform<T>? perform, required Watch<Value, T> watch})
Function for performing accepting mechanism.
Apply<T> = void Function(T)
Function for applying provided data into state for UI
Perform<T> = void Function(T)
Function for perform after build method is completed
ShouldApply<Value> = bool Function(Value)
Function for testing Apply should be called when depencencies change.
Watch<Value, T> = T Function(Value)
Function for detecting an object to observe.