State constructor

State({
  1. required String stateName,
  2. OnEnterLifecycle? onEnter,
  3. OnExitLifecycle? onExit,
  4. OnInputLifecycle? onInput,
})

Implementation

State({
  required this.stateName,
  this.onEnter,
  this.onExit,
  this.onInput,
});