showAlert static method

Future<void> showAlert(
  1. String title,
  2. String message
)

Implementation

static Future<void> showAlert(String title, String message) async {
  try {
    await _channel.invokeMethod('showAlert', {'title': title, 'message': message});
  } on PlatformException catch (e) {
    print("Failed to show alert: '${e.message}'.");
  }
}