changeUI method
Explicitly change to a particular interface.
Implementation
void changeUI(String? ui) {
//
if (ui == null || ui.isEmpty) {
return;
}
ui = ui.trim();
if (ui != 'Material' && ui != 'Cupertino') {
return;
}
if (ui == 'Material') {
useMaterial = true;
useCupertino = false;
switchUI = !UniversalPlatform.isAndroid;
} else {
useMaterial = false;
useCupertino = true;
switchUI = UniversalPlatform.isAndroid;
}
// Reload the whole App
reload();
}