switchThemeBrightness static method

ThemeData switchThemeBrightness(
  1. Brightness? brightness,
  2. ThemeData? themeData
)

可以调用后二次修改 或者自己实现

Implementation

static ThemeData switchThemeBrightness(
    Brightness? brightness, ThemeData? themeData) {
  return _generateThemeData(brightness, themeData: themeData);
}