showPlatformAlert method
dynamic
showPlatformAlert()
Implementation
showPlatformAlert() {
currentContext = _contextKey.currentContext;
if (currentContext != null) {
if (Platform.isIOS) {
showCupertinoDialog(currentContext!);
} else if (Platform.isAndroid) {
showMaterialDialog(currentContext!);
}
}
}