minimizeApp static method

Future<void> minimizeApp()

Minimizes the app and moves it to the background.

Implementation

static Future<void> minimizeApp() async {
  try {
    await _channel.invokeMethod('minimizeApp');
  } on PlatformException catch (e) {
    if (kDebugMode) {
      print("Failed to minimize app: ${e.message}");
    }
  }
}