elementary library
Classes
- DefaultDebugErrorHandler
- The simplest error handler that just prints error to the console in debug mode.
- ElementaryModel
- The base class for an entity that contains a business logic required for a specific inheritor of ElementaryWidget.
-
ElementaryWidget<
I extends IWidgetModel> - A widget that uses state of WidgetModel properties to build a part of the user interface described by this widget.
- ErrorHandler
- Interface for handle error in business logic. It may be something like write log or else.
- IWidgetModel
- A basic interface for every WidgetModel.
-
WidgetModel<
W extends ElementaryWidget< IWidgetModel> , M extends ElementaryModel> - The basic implementation of the entity responsible for all presentation logic, providing properties and data for the widget, and keep relations with the business logic. Business logic represented in the form of ElementaryModel.
Mixins
-
AutomaticKeepAliveWidgetModelMixin<
W extends ElementaryWidget< IWidgetModel> , M extends ElementaryModel> - A mixin with convenience methods for clients of AutomaticKeepAlive. Used with WidgetModel subclasses.
- MockElementaryModelMixin
- Mixin that helps to prevent NoSuchMethodError exception when the ElementaryModel is mocked.
-
MockWidgetModelMixin<
W extends ElementaryWidget< IWidgetModel> , M extends ElementaryModel> - Mixin that helps to prevent NoSuchMethodError exception when the WidgetModel is mocked.
-
SingleTickerProviderWidgetModelMixin<
W extends ElementaryWidget< IWidgetModel> , M extends ElementaryModel> - Single ticker provider for WidgetModel based on SingleTickerProviderStateMixin https://api.flutter.dev/flutter/widgets/SingleTickerProviderStateMixin-mixin.html
-
TickerProviderWidgetModelMixin<
W extends ElementaryWidget< IWidgetModel> , M extends ElementaryModel> - Ticker provider for WidgetModel based on TickerProviderStateMixin https://api.flutter.dev/flutter/widgets/TickerProviderStateMixin-mixin.html
Typedefs
-
WidgetModelFactory<
T extends WidgetModel< ElementaryWidget< > = T Function(BuildContext context)IWidgetModel> , ElementaryModel> - Type for a factory function that is used to create an instance of WidgetModel.