The method signature for a States onEnter method
onEnter
typedef OnEnter = Future<void>? Function(Type fromState, Event? event);