execute method

  1. @override
Future<void> execute(
  1. TutorialBloc? tutorialBloc
)
override

Executes the widget highlight step.

Attempts to load the widget key from the repository. If the key is not found, a warning is printed in debug mode.

Implementation

@override
Future<void> execute(TutorialBloc? tutorialBloc) async {
  GlobalKey? widgetKey = loadFromRepository?.call();
  if (widgetKey == null) {
    if (kDebugMode) {
      print("TUTORIAL WARNING: Highlight step invoked without widget key registered: Widget $tutorialID");
    }
  }
}