Optional callback check if a network connection is active.
final Future<bool> Function()? hasConnection;