koin_flutter library

Classes

ScopeProvider
Class that propagate the Scope down the tree.

Mixins

HotRestartScopeMixin
A mixin that overrides the dispose method to call the currentScope.close()method of the current scope when the T is removed from widget tree.
ScopeStateMixin<T extends StatefulWidget>
A mixin that overrides the dispose method to call the currentScope.close()method of the current scope when the T is removed from widget tree.

Extensions

ComponentWidgetExtension on Diagnosticable
Extension to provide KoinComponent methods for Flutter Widgets.
ScopeContextExtension on BuildContext
Extension that allows to retrieve a Scope from the current context. Equivalent to ScopeProvider.of(context.scope.
ScopeWidgetExtension on State<T>
Extension that provides the currentScope for the State class. Instead of using `widget.scope.get() use currentScope.get().
StatefulWidgetScopeExtensiont on T
Extension to provide the Koin scope API for StatefulWidget.

Exceptions / Errors

ScopeNotFoundException
Exception that should be thrown when a Scope is not found. This occurs when 'context.scope' is used in a context that has not been scoped.