Skip to content

Commit 395308a

Browse files
committed
fix typo
1 parent de16f4c commit 395308a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ To check the availability of Google Play services on the current device, you can
3333
``` dart
3434
import `package:google_api_availability/google_api_availability.dart`;
3535

36-
GooglePlayServicesAvailability availability = await GoogleApiAvailability().checkGooglePlayServicesAvailability();
36+
GooglePlayServicesAvailability availability = await GoogleApiAvailability.instance.checkGooglePlayServicesAvailability();
3737
```
3838

3939
If you want to show a dialog by the Android system with more information and show a possible fix to the user you can do:
4040

4141
``` dart
4242
import `package:google_api_availability/google_api_availability.dart`;
4343
44-
GooglePlayServicesAvailability availability = await GoogleApiAvailability().checkGooglePlayServicesAvailability(true);
44+
GooglePlayServicesAvailability availability = await GoogleApiAvailability.instance.checkGooglePlayServicesAvailability(true);
4545
```
4646

4747
**Note that on iOS this will always return false!**

0 commit comments

Comments
 (0)