use<R> function
Register a Hook and returns its value
use must be called withing build of either HookWidget or StatefulHookWidget,
and all calls to use must be made unconditionally, always on the same order.
See Hook for more explanations.
Implementation
// ignore: deprecated_member_use, deprecated_member_use_from_same_package
R use<R>(Hook<R> hook) => Hook.use(hook);