isOnline static method Null safety

Future<bool> isOnline()

Returns true if online.