ShowcaseStepCallback typedef

ShowcaseStepCallback = void Function(int? index, GlobalKey<State<StatefulWidget>> key)

Signature for the step listeners registered dynamically on the controller with ShowCaseWidgetState.addOnStartCallback and ShowCaseWidgetState.addOnCompleteCallback.

Receives the zero-based index of the step and the GlobalKey of its target, matching ShowCaseWidget.onStart / ShowCaseWidget.onComplete.

Implementation

typedef ShowcaseStepCallback = void Function(int? index, GlobalKey key);