present method
Future<bool>
present(
- BuildContext context,
- DiscoveryTip<
Object> tip, - 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,
);
}