diff --git a/pay/example/integration_test/payment_flow_test.dart b/pay/example/integration_test/payment_flow_test.dart index 0a2c1a3b..974606b1 100644 --- a/pay/example/integration_test/payment_flow_test.dart +++ b/pay/example/integration_test/payment_flow_test.dart @@ -19,7 +19,7 @@ import 'package:pay/pay.dart'; void main() { IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - testWidgets("correctly creates an instance of the client", (_) async { + testWidgets("correctly creates an instance of the client", (WidgetTester tester) async { Pay client = Pay({}); await expectLater(client, isNotNull); }); diff --git a/pay/example/lib/advanced.dart b/pay/example/lib/advanced.dart index 8a6e0d88..64c68589 100644 --- a/pay/example/lib/advanced.dart +++ b/pay/example/lib/advanced.dart @@ -26,7 +26,7 @@ void main() { runApp(const PayAdvancedMaterialApp()); } -const googlePayEventChannelName = 'plugins.flutter.io/pay/payment_result'; +const kGooglePayEventChannelName = 'plugins.flutter.io/pay/payment_result'; const _paymentItems = [ PaymentItem( label: 'Total', @@ -70,7 +70,7 @@ class PayAdvancedSampleApp extends StatefulWidget { } class _PayAdvancedSampleAppState extends State { - static const eventChannel = EventChannel(googlePayEventChannelName); + static const eventChannel = EventChannel(kGooglePayEventChannelName); StreamSubscription? _googlePayResultSubscription; late final Future _canPayGoogleFuture; diff --git a/pay_platform_interface/lib/core/payment_configuration.dart b/pay_platform_interface/lib/core/payment_configuration.dart index ff87916f..887dacd5 100644 --- a/pay_platform_interface/lib/core/payment_configuration.dart +++ b/pay_platform_interface/lib/core/payment_configuration.dart @@ -19,6 +19,7 @@ import 'package:flutter/services.dart'; import '../util/configurations.dart'; /// The payment providers supported by this package. +// ignore: constant_identifier_names enum PayProvider { apple_pay, google_pay } /// A type used to define the signature of methods and objects used to load diff --git a/pay_platform_interface/lib/core/payment_item.dart b/pay_platform_interface/lib/core/payment_item.dart index bdfdca92..79e0bb0a 100644 --- a/pay_platform_interface/lib/core/payment_item.dart +++ b/pay_platform_interface/lib/core/payment_item.dart @@ -19,6 +19,7 @@ /// * [pending] expects changes to the final price in response to user selection /// or other circumstances that are not known when first requesting the payment. /// * [unknown] for any other scenario. +// ignore: constant_identifier_names enum PaymentItemStatus { unknown, pending, final_price } /// A set of utility methods associated to the [PaymentItemStatus] enumeration.