OnboardingStep constructor
const
OnboardingStep({
- required GlobalKey<
State< targetKey,StatefulWidget> > - List<
GlobalKey< ? extraTargetKeys,State< >StatefulWidget> > - String? description,
- Widget? descriptionWidget,
- bool showNext = true,
- bool showSkip = true,
- OnboardingTooltipPosition position = OnboardingTooltipPosition.auto,
- Map<
GlobalKey< ? keyPositions,State< , OnboardingTooltipPosition>StatefulWidget> > - Map<
GlobalKey< ? maxHeights,State< , double>StatefulWidget> > - Map<
GlobalKey< ? customWidths,State< , double>StatefulWidget> > - Map<
GlobalKey< ? borderRadii,State< , BorderRadius>StatefulWidget> > - double? spotlightHorizontalPadding,
- double tooltipVerticalOffset = 0,
- Map<
GlobalKey< ? targetClickables,State< , bool>StatefulWidget> > - List<
GlobalKey< ? arrowAnchorKeys,State< >StatefulWidget> > - List<
ArrowPosition> ? arrowPositions,
Creates an onboarding step with the given configuration.
Either description or descriptionWidget must be provided.
Implementation
const OnboardingStep({
required this.targetKey,
this.extraTargetKeys,
this.description,
this.descriptionWidget,
this.showNext = true,
this.showSkip = true,
this.position = OnboardingTooltipPosition.auto,
this.keyPositions,
this.maxHeights,
this.customWidths,
this.borderRadii,
this.spotlightHorizontalPadding,
this.tooltipVerticalOffset = 0,
this.targetClickables,
this.arrowAnchorKeys,
this.arrowPositions,
}) : assert(description != null || descriptionWidget != null,
'Either description or descriptionWidget must be provided');