Config class
Constructor for the Config model.
This is used to allow the user to customize the site before it is built. The number of missiles in each bank and the number of banks can be varied for the 3 types of missiles this application allows for.
- Inheritance
- Object
- SamModel
- Config
Constructors
- Config(MediaQueryData mqd, bool bIsMaterial)
-
Construct the extended model that wil be further populated at
ConfigFactory.makeModel
.
Properties
- aaaName ↔ String
-
The model name. [...]
read / write, inherited
- availHgt ↔ double
-
The height we can use after the top form is subtracted.
read / write
- biasHgt ↔ double
-
The height we can use after headers subtracted.
read / write
- bIsMaterial → bool
-
True if running Material mode vs Cupertino mode.
final
- curVer ↔ int
-
track what copy we are looking at during development
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- inputHasFocus ↔ bool
-
Used to control the visibility of the RichText paragraph when the
keyboard is present.
read / write
-
kids
→ List<
SamModel> -
get the list of children of this
SamModel
read-only, inherited - mediaHgt ↔ double
-
The screen height of device we are running on
read / write
- mediaWid ↔ double
-
The screen width of device we are running on
read / write
- mqd → MediaQueryData
-
Used to set the other values. See
ConfigFactory.makeModel
.final - onFocus ↔ FocusFunc
-
Function that is executed.
read / write
- parent → SamModel
-
get the parent
SamModel
or nullread-only, inherited - prefWid ↔ double
-
The preferred width. Set to a maximum of 600 for Web platform.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- samState → String
-
get the present State string. [...]
read-only, inherited
Methods
-
actionCall(
Object action, [Map actMap]) → void -
Entry point for standard Form Widget actions such as a button press. [...]
inherited
-
activate(
{bool bLog: false}) → SamModel -
Activate the
SamModel
after assert validation. [...]inherited -
broken(
String err) → SamModel -
return
SamModel
after jamming it intoSE.ss_broken
state with whyBroken set toerr
.inherited -
defReject(
SamModel sm, Map req, String msg) → void -
A shortcut to jam
SamModel
intoSE.ss_broken
state with whyBroken set tomsg
.inherited -
dumpSamHot(
) → String -
list all samHot values for debugging
inherited
-
flipState(
Object estrState) → void -
a shortcut to create a proposal to flip the present SamModel.samState to
estrState
. [...]inherited -
getBuildContext(
) → BuildContext -
returns current BuildContext for
SamModel
[...]inherited -
getDefState(
String state) → DefState -
returns the current
DefState
for thisSamModel
inherited -
getHot(
String sym) → Object -
Return the current
sym
value and track request for dependency determination.inherited -
hasHot(
String sym) → bool -
return true if the
sym
has a value in theSamHot
map.inherited -
isState(
Object testState) → bool -
returns true if the current state of this
SamModel
istestState
[...]inherited -
makeModel(
covariant SamFactory sf, SamAction sa, SamState ss, SamView sv) → void -
Populate Config variables. [...]
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
present(
Object expState, Object what, {Map stepParms, Function rejector}) → void -
Present a transition proposal to this
SamModel
model. [...]inherited -
presentNow(
Object what, {Map stepParms, Function rejector}) → void -
A shortcut to call SamModel.present with
expState
set to this SamModel.samState.inherited -
raiseSignal(
Object signal, SamReq req) → void -
Raise a signal to a parent
SamModel
. [...]inherited -
setHot(
String sym, Object value) → void -
Set a new
value
ofsym
inSamHot
and record fact it changed for dependency notification.inherited -
siteDefined(
SamModel sm, SamReq req) → void - Transition to build the missile site. [...]
-
toString(
) → String -
convenient debug representation of
SamModel
override -
view(
) → SamView -
returns the related
SamView
for theSamModel
inherited -
watch(
BuildFunc bf) → SamWatch -
Establish a watch scope and return a
SamWatch
widget. [...]inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Static Properties
- verCtr ↔ int
-
read / write
Static Methods
-
findConfig(
BuildContext context) → Config