- Bumping version number, so pub.dev can accept the package
- Add more docs for
onStatusChange
- Fix status not updated bug (
_lastStatus
being set incorrectly)
- Fix annoying
dartfmt
warning (perfectionism intensifies)
- Added
onStatusChange
stream, which users of this lib can subscribe to and listen for status changes. Emit values ofDataConnectionStatus
- Added
checkInterval
which controls how often a check is made when someone is listening toonStatusChange
. Defaults toDEFAULT_INTERVAL
(10 seconds)
Breaking change
hasDataConnection
is now calledhasConnection
Non breaking
isHostReachable()
is now public. It allows for individual checks.- Fix
DEFAULT_ADDRESSES
to 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
addresses
is 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