auto_reload 0.0.1-dev.3 auto_reload: ^0.0.1-dev.3 copied to clipboard
a library that helps to perform actions with some periodicity
SurfGear
auto_reload #
A library that helps to perform actions with some periodicity
Usage of AutoReload #
main classes:
usage:
- Create abstract class that should be able to reload data should implements [AutoReloader]
- Apply mixin on a child (that implements [AutoReloader])
- override [autoReload]
- call [startAutoReload] for start and [cancelAutoReload] for dispose
Usage of AutoRequestManager #
main classes:
Main feature of [AutoRequestManager] that requests will only start restarting when a connection is made. It implemented by a third-party library names connectivity. (https://pub-web.flutter-io.cn/packages/connectivity)
usage:
- Add your request in #autoReload
- Wait callback about successful completion