cynic 0.2.0 copy "cynic: ^0.2.0" to clipboard
cynic: ^0.2.0 copied to clipboard

Dart 1 only

Utilities for offline-first development.

0.2.0 #

  • Rename Service to Reachable.
  • Expose the default service as Reachable.googleDns.
  • Added Reachable.any|all.

0.1.1 #

  • Added a Service class, that represents something online or offline:
final servers = const [
  const Service.ipAddress('256.257.258.1', name: 'Server A'),
  const Service.ipAddress('256.257.258.2', name: 'Server B'),
  const Service.ipAddress('256.257.258.3', name: 'Server C'),
];

main() async {
  print(await Service.allOnline(servers));
}

0.1.0 #

  • Initial commit with the isOnline() method:
import 'package:cynic/cynic.dart';

main() async {
  print('Connected: ${await isOnline()}');
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Utilities for offline-first development.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

meta

More

Packages that depend on cynic