ShowBannerMessageExtensionEvent constructor

ShowBannerMessageExtensionEvent({
  1. required String id,
  2. required String bannerMessageType,
  3. required String message,
  4. required String extensionName,
  5. bool ignoreIfAlreadyDismissed = true,
})

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,
        },
      );