File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- include : package:pedantic/analysis_options.1.8.0. yaml
1
+ include : package:pedantic/analysis_options.yaml
2
2
analyzer :
3
3
exclude :
4
4
# Ignore generated files
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class GoogleApiAvailability {
14
14
/// Acquires an instance of the [GoogleApiAvailability] class.
15
15
static const GoogleApiAvailability instance = GoogleApiAvailability ._();
16
16
17
- static MethodChannel _methodChannel = const MethodChannel (
17
+ static final MethodChannel _methodChannel = const MethodChannel (
18
18
'flutter.baseflow.com/google_api_availability/methods' );
19
19
20
20
/// This feature is only available on Android devices. On any other platforms
@@ -26,7 +26,7 @@ class GoogleApiAvailability {
26
26
return GooglePlayServicesAvailability .notAvailableOnPlatform;
27
27
}
28
28
29
- final int ? availability = await _methodChannel.invokeMethod (
29
+ final availability = await _methodChannel.invokeMethod (
30
30
'checkPlayServicesAvailability' ,
31
31
< String , bool > {'showDialog' : showDialogIfNecessary});
32
32
Original file line number Diff line number Diff line change
1
+ /// Indicates possible states of the Google Api Services availability.
1
2
class GooglePlayServicesAvailability {
2
3
const GooglePlayServicesAvailability ._(this .value);
3
4
5
+ /// Represents the integer value of the Google Api Services availability
6
+ /// state.
4
7
final int value;
5
8
6
9
/// Google Play services are installed on the device and ready to be used.
@@ -35,6 +38,7 @@ class GooglePlayServicesAvailability {
35
38
static const GooglePlayServicesAvailability unknown =
36
39
GooglePlayServicesAvailability ._(7 );
37
40
41
+ /// Returns a list with all possible Google Api Availability states.
38
42
static const List <GooglePlayServicesAvailability > values =
39
43
< GooglePlayServicesAvailability > [
40
44
success,
You can’t perform that action at this time.
0 commit comments