Skip to content

Commit c42699e

Browse files
committed
Fix analysis warnings
1 parent 156bece commit c42699e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:pedantic/analysis_options.1.8.0.yaml
1+
include: package:pedantic/analysis_options.yaml
22
analyzer:
33
exclude:
44
# Ignore generated files

lib/src/google_api_availability.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class GoogleApiAvailability {
1414
/// Acquires an instance of the [GoogleApiAvailability] class.
1515
static const GoogleApiAvailability instance = GoogleApiAvailability._();
1616

17-
static MethodChannel _methodChannel = const MethodChannel(
17+
static final MethodChannel _methodChannel = const MethodChannel(
1818
'flutter.baseflow.com/google_api_availability/methods');
1919

2020
/// This feature is only available on Android devices. On any other platforms
@@ -26,7 +26,7 @@ class GoogleApiAvailability {
2626
return GooglePlayServicesAvailability.notAvailableOnPlatform;
2727
}
2828

29-
final int? availability = await _methodChannel.invokeMethod(
29+
final availability = await _methodChannel.invokeMethod(
3030
'checkPlayServicesAvailability',
3131
<String, bool>{'showDialog': showDialogIfNecessary});
3232

lib/src/models/google_play_services_availability.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
/// Indicates possible states of the Google Api Services availability.
12
class GooglePlayServicesAvailability {
23
const GooglePlayServicesAvailability._(this.value);
34

5+
/// Represents the integer value of the Google Api Services availability
6+
/// state.
47
final int value;
58

69
/// Google Play services are installed on the device and ready to be used.
@@ -35,6 +38,7 @@ class GooglePlayServicesAvailability {
3538
static const GooglePlayServicesAvailability unknown =
3639
GooglePlayServicesAvailability._(7);
3740

41+
/// Returns a list with all possible Google Api Availability states.
3842
static const List<GooglePlayServicesAvailability> values =
3943
<GooglePlayServicesAvailability>[
4044
success,

0 commit comments

Comments
 (0)