GuideBubble.spotlight constructor

GuideBubble.spotlight({
  1. required SpotlightStep step,
  2. required VariableScope scope,
  3. required ValueChanged<GuideAction> onAction,
})

Builds a bubble for a SpotlightStep (its callout).

Implementation

factory GuideBubble.spotlight({
  required SpotlightStep step,
  required VariableScope scope,
  required ValueChanged<GuideAction> onAction,
}) =>
    GuideBubble(
      title: step.title,
      body: step.body,
      maxWidth: step.calloutMaxWidth,
      padding: step.calloutPadding,
      backgroundColor: step.calloutBackgroundColor,
      borderColor: step.calloutBorderColor,
      borderWidth: step.calloutBorderWidth,
      cornerRadius: step.calloutCornerRadius,
      shadow: step.calloutShadow,
      titleColor: step.titleColor,
      titleSize: step.titleSize,
      titleWeight: step.titleWeight,
      bodyColor: step.bodyColor,
      bodySize: step.bodySize,
      buttonPrimaryBackgroundColor: step.buttonPrimaryBackgroundColor,
      buttonPrimaryTextColor: step.buttonPrimaryTextColor,
      buttonGhostTextColor: step.buttonGhostTextColor,
      actions: step.actions,
      scope: scope,
      onAction: onAction,
    );