SamFactory constructor

SamFactory(
  1. List enums
)

Creates SamFactory extension and associates it with enums.

The enums represent the valid list of states, actions and signals that the SamModel uses. See Enums.

Implementation

SamFactory(this.enums) {
  enumTypes.add(enums[0].runtimeType);
  _sa = SamAction(this);
  _ss = SamState(this);
  _sv = SamView(this);
  formatTrifecta(_sa,_ss,_sv);
  _sa.sf = null; //release to release storage
  _ss.sf = null;
  _sv.sf = null;
}