bilocator library

Classes

Bilocator<T extends Object>
A widget that locates a single service in a registry or an inherited model in the widget tree.
BilocatorDelegate<T extends Object>
Delegate for Bilocator. See Bilocators for more information.
Bilocators
Register multiple Objects so they can be retrieved with Bilocator.get

Enums

Location

Mixins

BilocatorStateImpl<T extends Object>
Implements the State class of Bilocator
Observer
Implements observer pattern.

Extensions

BilocatorBuildContextExtension on BuildContext
Adds get and of features to BuildContext.

Functions

toOne(Object? object) int
Returns 1 if non null, 0 if null. Typically used for counting non-nulls. E.g., assert(toOne(a) + toOne(b) == 1)

Typedefs

Filter = String? Function(List<String?>)