present method

  1. @override
Future<bool> present(
  1. BuildContext context,
  2. DiscoveryTip<Object> tip,
  3. DiscoveryContext ctx
)
override

Return true if the presentation actually rendered. A false return (e.g. a coach mark whose anchor wasn't mounted in time) means the tip should not be marked as seen and the emit loop may continue.

Implementation

@override
Future<bool> present(
  BuildContext context,
  DiscoveryTip tip,
  DiscoveryContext ctx,
) {
  return DiscoveryCoachMark(
    bubbleColor: bubbleColor,
    bubbleBorderColor: bubbleBorderColor,
    arrowColor: arrowColor,
    titleColor: titleColor,
    messageColor: messageColor,
    dismissButtonColor: dismissButtonColor,
    dismissButtonTextColor: dismissButtonTextColor,
    closeIconColor: closeIconColor,
    scrimColor: scrimColor,
    bubbleShadowColor: bubbleShadowColor,
  ).show(
    context: context,
    anchorKey: anchorKey,
    message: message,
    title: title,
    dismissLabel: dismissLabel,
    placement: placement,
    style: style,
  );
}