init static method

dynamic init({
  1. Brightness? brightness,
  2. TencentCloudChatThemeModel? themeModel,
})

Initializes the theme data with the given BuildContext.

Implementation

static init({
  Brightness? brightness,
  TencentCloudChatThemeModel? themeModel,
}) {
  if (brightness != null) {
    TencentCloudChatTheme().brightness = brightness;
  }
  if (themeModel != null) {
    TencentCloudChatTheme().themeModel = themeModel;
  }
}