canConnect method
Determines whether a connection can be made at this point in time to the device.
Implementation
@override
Future<bool> canConnect() async {
try {
var data = await service?.feedFromGeoLocation(
40.63047005003576, -74.12938368359374);
return (data != null);
} catch (_) {
return false;
}
}