noob library
Classes
-
AsyncValueCached<
T> - BuildFrame
- BuildTracker
- Track rebuilt widgets and build roots for each frame.
-
EmptyBuiltList<
E> -
EmptyBuiltMap<
K, V> - GlobalPositionStateNotifier
- Track the global position of a BuildContext's RenderBox.
- LastPointerEventProviderStateNotifier
- Track the last PointerEvent of active pointers.
- PageParams
- See UriRoute.
- PeriodicListenable
- A `Listenable that notifies its subscribers periodically.
- PointerIndicator
- A Widget showing the pointer positions ontop of its child.
- RebuildDirtyWidget
- ScheduleBuildFor
- TrackingBuildOwner
-
A BuildOwner that allows to track all calls to
scheduleBuildFor
via debugOnScheduleBuildFor. - TrackingBuildOwnerAutomatedTestWidgetsFlutterBinding
- AutomatedTestWidgetsFlutterBinding with TrackingBuildOwnerWidgetsBindingMixin
- TrackingBuildOwnerWidgetsFlutterBinding
- WidgetsFlutterBinding with TrackingBuildOwnerWidgetsBindingMixin
- UriRoute
- A route to be used in UriRouter.addRoute.
- UriRouter
- A simple and flexible Uri-based page router.
-
Variable<
T> - A container for a variable.
Mixins
- TrackingBuildOwnerWidgetsBindingMixin
-
A mixin on WidgetsBinding that injects TrackingBuildOwner as its
buildOwner
.
Extensions
-
AsyncValueExt
on AsyncValue<
T> - ObjectExt on T
- StringExt on String
Properties
- debugOnScheduleBuildFor ↔ (void Function(Element e)?)
-
This function is called whenever a build is scheduled for an Element.
getter/setter pair
-
globalPositionProvider
→ AutoDisposeStateNotifierProviderFamily<
GlobalPositionStateNotifier, Rect?, BuildContext> -
A provider to track the global position of a
BuildContext
's RenderBox.final -
lastPointerEventProvider
→ AutoDisposeStateNotifierProvider<
LastPointerEventProviderStateNotifier, BuiltMap< int, PointerEvent> > -
A provider to track the last PointerEvents of active pointers.
final
Functions
-
useAsyncValue<
T> (Future< T> future(), [List<Object?> keys = const <Object>[]]) → AsyncValue<T> -
Turn the Future returned by
future
into anAsyncValue
. -
useAsyncValueProvider<
T> (ProviderBase< AsyncValue< provider) → AsyncValueCached<T> >T> -
useDisposable<
T extends Object> (T create(), ValueCallback< T> dispose, [List<Object> keys = const []]) → T -
Initially (and whenever
keys
change),create
will be called to create an instance ofT
that will then always be returned late ron. -
useLastValidAsyncData<
T> (AsyncValue< T> value) → AsyncData<T> ? -
Remembers and returns the most recent valid
AsyncData
with the following logic: -
useListener(
Listenable? listenable, {required bool callInitially, required VoidCallback callback}) → void -
Adds
callback
as listener tolistenable
and removes it again upon destruction of the hook. If called multiple times with differentcallback
s, the one from the most recent call will be used. -
useRebuild(
) → VoidCallback -
Calling the function causes the enclosing
HookWidet
orHookBuilder
to rebuild. -
useValueListener<
T> (ValueListenable< T> ? listenable, {required bool callInitially, required ValueCallback<T> callback}) → void -
Adds
callback
as listener tolistenable
and removes it again upon destruction of the hook. If called multiple times with differentcallback
s, the one from the most recent call will be used. -
useVariable<
T> (T initialData) → Variable< T> - A variable. Changes to the variable will not trigger rebuilds.
Typedefs
- PageBuilder = Widget Function(BuildContext context, PageParams params)
- See UriRoute.
- RouteBuilder = Route Function(RouteSettings settings, WidgetBuilder builder)
- See UriRoute.
-
ValueCallback<
T> = void Function(T value) -
A callback receiving a single
value
.