goHome static method
Navigates to the device's home screen.
Returns true on success, otherwise throws an exception.
Implementation
static Future<bool> goHome() async {
try {
final result = await _channel.invokeMethod<bool>('goHome');
return result ?? false;
} on PlatformException catch (e) {
throw Exception('Failed to go home: ${e.message}');
}
}