fair library

Classes

BundleLoader
Interface of bundle loader
FairApp
Application which can update the widget tree through bundle file.
FairBinding
Annotation to generate a library binding
FairDelegate
Delegate for business logic. The delegate share similar life-circle with State.
FairMethod
FairModule<T>
Define a custom component as FairModule
FairPatch
Annotation for Fair compiler, this indicate the top Widget need to generate as bundle resource
FairPlugin
FairPluginDispatcher
FairProps
FairState
FairUtf8
FairVoidCallbackModule
Define a callback as FairModule, such as onPressed event. Override onCreateComponent to return a VoidCallback
FairWell
An annotation used to specify a class to generate code for.
FairWidget
FairWidget renders a dynamic DSL as Widget. Must be descendant of FairApp.
FairWidgetModule
Define a widget as FairModule
GeneratedModule
IFairPlugin
Runtime
Sugar
The operations can be used in DSL.
SugarSwitchCaseObj<T, K>

Mixins

$BindingImpl

Constants

apiCount → const int
dartVersion → const String
fairVersion → const String
flutterVersion → const String
widgetCount → const int
widgetNames → const Map<String, bool>

Functions

$(dynamic props) BuildContext
Get context instance
as<T>(List? children) List<T>?
main() → void
showFairAboutDialog(BuildContext context) → void
Show a dialog displaying the Fair information.

Typedefs

FairDelegateBuilder = FairDelegate Function(BuildContext context, Map<String, dynamic>? data)
state delegate builder
FairModuleBuilder = FairModule Function()
FairRouteBuilder = void Function(BuildContext context, String routeName, {Object arguments})
Custom router builder
PropertyValue<T> = T Function()