enum Reachability { unknown, online, offline }

class NetworkState {
  const NetworkState(this.reachability);

  final Reachability reachability;

  bool get isOnline => reachability == Reachability.online;
  bool get isOffline => reachability == Reachability.offline;
  bool get isUnknown => reachability == Reachability.unknown;
}
