flutter_hooks_extra library Null safety

Classes

AsynchronizedEvent
异步
CancelledEvent
可取消
CountdownResult
CounterController
Counter number controller
EventEmitter
事件映射函数分发监听功能类
FormattedRes
FutureHookOptions
所有的 Options 均是可选的。
FutureHookResult
状态加手动执行函数

Functions

useCountdown(DateTime targetDate, {int? interval, dynamic onEnd()?}) CountdownResult
useCounter(num initialValue, {num? step, num? min, num? max}) CounterController
useCounter Hook
useDebounceState<T>(T initialData, {int? wait}) ValueNotifier<T>
useDebounceState function
useEmitter(String key) EventEmitter?
Emitter 钩子
useFutureState(Future future(dynamic params), {FutureHookOptions? options}) FutureHookResult
useFutureState function

Typedefs

EventListener = dynamic Function(dynamic event)
事件监听函数类型声明