showPlatformAlert method

dynamic showPlatformAlert()

Implementation

showPlatformAlert() {
  currentContext = contextKey.currentContext;
  if (currentContext != null) {
    if (Platform.isIOS) {
      showCupertinoDialog(currentContext!);
    } else if (Platform.isAndroid) {
      showMaterialDialog(currentContext!);
    }
  }
}