checkApplePaySupport method

Future<bool> checkApplePaySupport()

Checks if Apple pay is supported on this device.

Always returns false on non Apple devices.

Implementation

Future<bool> checkApplePaySupport() async {
  await _awaitForSettings();
  final isSupported = await _platform.isApplePaySupported();
  _isApplePaySupported ??= ValueNotifier(false);
  _isApplePaySupported?.value = isSupported;
  return isSupported;
}