setThemeMode method
Sets a theme mode from package:flutter/material.dart on the SDK host.
Migration notice: standalone material_ui.ThemeMode is a different
type. This API remains supported pending a stable standalone replacement.
See the migration guide.
Implementation
void setThemeMode(ThemeMode value) {
config = config.copyWith(themeMode: value);
update();
}