turbo library
Classes
-
TurboBuilder<
E, T extends TurboController< E> > - TurboBuilder enables you to create resposive widgets or components of the UI without separating that part of the UI to a different file. This adds flexibility to the workflow.
-
TurboController<
E> - The core component of controller logic. If you want to implement controller logic in your application using Turbo, you will be using this abstraction
- TurboElement
- An Element that uses a TurboWidget as its configuration.
-
TurboEvent<
E> -
TurboEvent
represents events associated with a controller, that the widgets should respond to. Use TurboController.event oryourController.event
to get the corresponding event -
TurboState<
S extends StatefulWidget> - A replacement for State to be used with a StatefulWidget
- TurboWidget
- Replacement for StatelessWidget but with the ability to respond to changes in attached TurboController instances.
Functions
-
stateRefresh<
T extends StatefulWidget> ({required State< T> state, void change()?}) → void -
Refreshes the TurboState remotely after checking if it is actually
mounted in the widget tree. This also checks for WidgetsBinding.instance,
so as to make sure that the
setState
method is not called while the framework is building the widget. -
widgetRefresh(
{required TurboElement element}) → void -
Refreshes the TurboWidget remotely using its TurboElement after checking
if it is actually mounted in the widget tree. This also checks for
WidgetsBinding.instance, so as to make sure that the
setState
method is not called while the framework is building the widget.