States constructor

States({
  1. String? id = null,
})

Create a state machine and populate with states

Implementation

States({this.id = null}) {
  ++_INDEX;
  id = id ?? 'states_$_INDEX';
}