updateTheme abstract method

void updateTheme({
  1. required String theme,
})

This method should send a DevToolsExtensionEventType.themeUpdate event to the extension to notify it of a theme change in DevTools.

theme should be one of ExtensionEventParameters.themeValueLight or ExtensionEventParameters.themeValueDark.

Implementation

void updateTheme({required String theme});