auto_reload 0.0.1-dev.3

Flutter Android iOS web

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:

  1. AutoReloader
  2. AutoReloadMixin

usage:

  1. Create abstract class that should be able to reload data should implements [AutoReloader]
  2. Apply mixin on a child (that implements [AutoReloader])
  3. override [autoReload]
  4. call [startAutoReload] for start and [cancelAutoReload] for dispose

Usage of AutoRequestManager #

main classes:

  1. AutoFutureManager
  2. AutoRequestManager

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.dev/packages/connectivity)

usage:

  1. Add your request in #autoReload
  2. Wait callback about successful completion
1
likes
110
pub points
5%
popularity

Publisher

surf.ru

a library that helps to perform actions with some periodicity

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache 2.0 (LICENSE)

Dependencies

connectivity, flutter, surf_lint_rules

More

Packages that depend on auto_reload