get_it library

Classes

GetIt
Very simple and easy to use service locator You register your object creation or an instance of an object with registerFactory, registerSingleton or registerLazySingleton And retrieve the desired object using get or call your locator das as function as its a callable class

Functions

throwIf(bool condition, Object error) → void
throwIfNot(bool condition, Object error) → void

Typedefs

FactoryFunc<T> = T Function()