GuideBubble.tooltip constructor

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

Builds a bubble for a TooltipStep.

Implementation

factory GuideBubble.tooltip({
  required TooltipStep step,
  required VariableScope scope,
  required ValueChanged<GuideAction> onAction,
}) =>
    GuideBubble(
      title: step.title,
      body: step.body,
      maxWidth: step.maxWidth,
      padding: step.padding,
      backgroundColor: step.backgroundColor,
      borderColor: step.borderColor,
      borderWidth: step.borderWidth,
      cornerRadius: step.cornerRadius,
      shadow: step.shadow,
      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,
    );