show static method

Future<bool> show({
  1. required Future dialogService({
    1. Widget dialog,
    }),
  2. Future<bool> onComplete(
    1. String otp
    )?,
  3. void onResend()?,
  4. String? destination,
})

Implementation

static Future<bool> show({
  required Future<dynamic> Function({Widget dialog}) dialogService,
  Future<bool> Function(String otp)? onComplete,
  void Function()? onResend,
  String? destination,
}) async {
  try {
    await dialogService(
      dialog: S360fOtpPopup(
        destination: destination,
        onComplete: onComplete,
        onResend: onResend,
      ),
    );
    return true;
  } catch (e) {
    appLog('Error showing Popup: $e');
    return false;
  }
}