Future<bool> isDeviceCapable() { if (Platform.isIOS) { return SquareMobilePaymentsSdkPlatform.instance.isDeviceCapable(); } return Future.error(_notSupportedError()); }