ShowBannerMessageExtensionEvent constructor
ShowBannerMessageExtensionEvent({})
Implementation
ShowBannerMessageExtensionEvent({
required String id,
required String bannerMessageType,
required String message,
required String extensionName,
bool ignoreIfAlreadyDismissed = true,
}) : assert(bannerMessageType == 'warning' || bannerMessageType == 'error'),
super(
DevToolsExtensionEventType.showBannerMessage,
data: {
_idKey: id,
_bannerMessageTypeKey: bannerMessageType,
_messageKey: message,
_extensionNameKey: extensionName,
_ignoreIfAlreadyDismissedKey: ignoreIfAlreadyDismissed,
},
);