exitApp method
Implementation
Future<void> exitApp() async {
if (Platform.isAndroid) {
try {
await _channel.invokeMethod<dynamic>('exitApp');
} on PlatformException catch (e) {
debugPrint('${e.code}: ${e.message}');
}
}
}