flutter_atoms library

Classes

AtomCondition
AtomConditionWith<T>
AtomConstant<T>
AtomEvent<T>
AtomPairEvent<T, K>
AtomsExample
AtomTest
AtomVariable<T>
AtomVoidEvent
SomeOtherClass

Properties

changedEvent Provider<AtomEvent<String>>
final
changedHistoryEvent Provider<AtomPairEvent<String, String>>
final
intVariable StateNotifierProvider<AtomVariable<int>>
final
scaffoldKeyProvider Provider<GlobalKey<ScaffoldMessengerState>>
final
stringConstant Provider<AtomConstant<String>>
final
stringEvent Provider<AtomEvent<String>>
final
stringPairEvent Provider<AtomPairEvent<String, String>>
final
stringVariable StateNotifierProvider<AtomVariable<String>>
final
testCondition Provider<AtomConditionWith<String>>
final
testVoidCondition Provider<AtomCondition>
final
textVariable StateNotifierProvider<AtomVariable<String>>
final
voidEvent Provider<AtomVoidEvent>
final

Functions

createAtomCondition(AtomComparator comparator) Provider<AtomCondition>
createAtomConditionWith<T>(AtomComparatorWith<T> comparator) Provider<AtomConditionWith<T>>
createAtomConstant<T>(T value) Provider<AtomConstant<T>>
createAtomEvent<T>() Provider<AtomEvent<T>>
createAtomPairEvent<T, K>() Provider<AtomPairEvent<T, K>>
createAtomVariable<T>(T initialValue, {Provider<AtomEvent<T>> changedEvent, Provider<AtomPairEvent<T, T>> changedWithHistoryEvent}) StateNotifierProvider<AtomVariable<T>>
createAtomVoidEvent() Provider<AtomVoidEvent>
useAtomCondition(Provider<AtomCondition> atomCondition) bool Function()
useAtomConditionWith<T>(Provider<AtomConditionWith<T>> atomCondition) bool Function(T)
useAtomConstant<T>(Provider<AtomConstant<T>> atomConstant) → T
useAtomEvent<T>(Provider<AtomEvent<T>> atomEvent, ValueCallback<T> listener) → void
useAtomPairEvent<T, K>(Provider<AtomPairEvent<T, K>> atomPairEvent, PairCallback<T, K> listener) → void
useAtomVariable<T>(StateNotifierProvider<AtomVariable<T>> atomVariable) → T
useAtomVoidEvent(Provider<AtomVoidEvent> atomEvent, VoidCallback listener) → void

Typedefs

AtomComparator = bool Function(Reader read)
AtomComparatorWith<T> = bool Function(Reader read, T value)
PairCallback<T, K> = void Function(T previous, K current)
ValueCallback<T> = void Function(T value)