isOnline method
Checks if the device is currently online.
Returns true only when actual network connectivity is available (not just that WiFi/mobile is connected, but that internet is reachable).
Implementation
@override
Future<bool> isOnline() async => _online;