showBanner static method
Future<ABUSResult>
showBanner({
- required String message,
- BannerType type = BannerType.info,
- List<
BannerAction> actions = const [], - Duration? duration,
- Set<
String> ? tags, - int priority = 1,
- bool replace = false,
Show a banner
Implementation
static Future<ABUSResult> showBanner({
required String message,
BannerType type = BannerType.info,
List<BannerAction> actions = const [],
Duration? duration,
Set<String>? tags,
int priority = 1,
bool replace = false,
}) {
final event = BannerEvent(
id: 'banner_${DateTime.now().millisecondsSinceEpoch}',
message: message,
type: type,
actions: actions,
duration: duration,
tags: tags ?? {},
priority: priority,
);
return ABUS
.execute(ShowFeedbackInteraction(event: event, replace: replace));
}