auto property
bool
get
auto
auto control periodic run of sync with interval = autoSyncIntervalMin
Implementation
bool get auto => _auto;
set
auto
(bool v)
Implementation
set auto(bool v) {
String debugPrefix = '$runtimeType.enableAutoSync($v)';
lazy.log(debugPrefix);
if (_auto != v) {
_auto = v;
if (v) {
_autoTimer =
Timer.periodic(Duration(minutes: autoSyncIntervalMin), (timer) {
sync();
});
} else {
_autoTimer?.cancel();
}
}
}