switchScreen method
void
switchScreen(})
Implementation
void switchScreen(String screen, {List<String>? options, String? user, String? device, List<String>? tokens}) {
setState(() {
currentScreen = screen;
if (options != null) {
entityOptions = options;
}
if (user != null) {
username = user;
}
if (device != null) {
deviceId = device;
}
if (tokens != null) {
refreshTokens = tokens;
}
});
}