dispatch static method

dynamic dispatch(
  1. StateXType type,
  2. Object? state
)

Implementation

static dispatch(StateXType type, Object? state) {
  if (_listener != null) {
    _listener!(type, state);
  }
}