showErrorDialogFragment method
Display an error dialog according to the ErrorCode
if the connection
status is not SUCCESS
.
Returns true if the connection status did not equal SUCCESS
or any other
non-ConnectionResult
value.
Returns false otherwise.
Implementation
Future<bool> showErrorDialogFragment() async {
if (GoogleApiAvailabilityPlatform.instance == null) {
throw UnsupportedError('This platform is not supported.');
}
final showErrorDialogFragment =
await GoogleApiAvailabilityPlatform.instance!.showErrorDialogFragment();
return showErrorDialogFragment;
}