toggleBrightnessMode method

void toggleBrightnessMode({
  1. Brightness? brightness,
})

Toggles the brightness mode between light and dark.

Implementation

void toggleBrightnessMode({Brightness? brightness}) {
  _brightness = brightness ?? (_brightness == Brightness.light ? Brightness.dark : Brightness.light);
  TencentCloudChat.instance.eventBusInstance.fire(this, "TencentCloudChatTheme");
}