oinject library
Extensions
-
GlobalProvider
on void Function<
T>(BuildContext, T, {Object? key}) -
Extends the
provide
function with aglobal
method for providing global dependencies.
Functions
-
inject<
T> (BuildContext context, [Object? key]) → T? -
Injects a value of type
T
provided by an ancestor widget or globally. -
provide<
T> (BuildContext context, T value, {Object? key}) → void -
Provides a value of type
T
that can be injected into descendant widgets.