samcas library
The samcas library contains the classes to implement the samcas functionality described at samcas.
Classes
- DefState
- The DefState defines the properties of a particular state. [...]
- SamAction
- The Action Part of the Complex. [...]
- SamBuild
- Builder used by SamWatch to build custom Widget tree. [...]
- SamFactory
- The factory used to create one or more SamModel instances using the SamAction, SamState and SamView instances as patterns. [...]
- SamHot
- Sym to value mapping table within SamModel [...]
- SamInject
- The actual widget instance that is injected by samInject into the widget tree. [...]
- SamInjectable
- The state portion of the StatefulWidget used by SamInject to implement a StatefulWidget.
- SamModel
- The Model Part of the Complex. [...]
- SamReq
- The request object used during the processing of a SamModel.present proposal. [...]
- SamState
- The State Part of the Complex.
- SamView
- The View Part of the Complex. [...]
- SamWatch
- The stateful widget used to trigger rebuilds for the SamModel.watch scenario. [...]
Properties
Functions
-
buildSamModel(
SamFactory sf, SamModel sm, {SamModel parent}) → SamModel - Builds the SamModel from the SamFactory that has formatted the SamAction, SamState and SamView instances. [...]
-
samInject(
SamModel sm) → Widget - Used to inject a SamModel instance into the widget tree. [...]
Enums
- SE
- Internal SAM Enums
Typedefs
-
ActionFunc(
SamModel sm, SamReq req) → void - Signature of action request after present formatting
-
BuildFunc(
SamBuild sb) → Widget - Signature of build callback used by the SamWatch class
-
CheckFunc(
SamModel sm, String sym, bool value) → void - Signature of check request passed from widget
-
FocusFunc(
bool hasFocus) → void - Signature of focus event callback when focus changes on widget
-
LabelFunc(
SamModel sm, Object parms) → String - Signature of label fetch callback for dynamic callbacks
-
RenderFunc(
SamModel sm) → Widget - Signature of a render function