TutorialAwareWidget constructor

TutorialAwareWidget({
  1. GlobalKey<State<StatefulWidget>>? globalKey,
  2. List<TutorialID>? tutorialKeyIDs,
  3. List<TutorialID>? tutorialContextIDs,
  4. required Widget child,
})

Creates a TutorialAwareWidget.

The child parameter is required. If globalKey is not provided, a new GlobalKey will be created. tutorialKeyIDs and tutorialContextIDs are optional lists of TutorialIDs to register the widget's key and context, respectively.

Implementation

TutorialAwareWidget({
  GlobalKey? globalKey,
  this.tutorialKeyIDs,
  this.tutorialContextIDs,
  required this.child,
}) : super(key: globalKey ?? GlobalKey());