- Bumping version number, so pub.dev can accept the package
- Add more docs for
onStatusChange
- Fix status not updated bug (
_lastStatusbeing set incorrectly)
- Fix annoying
dartfmtwarning (perfectionism intensifies)
- Added
onStatusChangestream, which users of this lib can subscribe to and listen for status changes. Emit values ofDataConnectionStatus - Added
checkIntervalwhich controls how often a check is made when someone is listening toonStatusChange. Defaults toDEFAULT_INTERVAL(10 seconds)
Breaking change
hasDataConnectionis now calledhasConnection
Non breaking
isHostReachable()is now public. It allows for individual checks.- Fix
DEFAULT_ADDRESSESto be unmodifiable - removed getter
lastTryLog - added getter
connectionStatus - added getter
lastTryResults - updated example and readme
- Breaking changes
- This utility is now a Singleton (DataConnectionChecker() always returns the same instance) as it doesn't make sense to have more than one instance of this class
addressesis aList<InternetAddressCheckOptions>now. See the docs for more info- Each address can now have its own port and timeout assigned.
- Add more info in the README
- Minor refactoring
- Update README with more info
- Remove pedantic as a dependency
- Initial version