turbo library

Classes

TurboBuilder<T extends TurboController>
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
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.
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.