pushChanged method

Future<void> pushChanged(
  1. String mid,
  2. String hint, {
  3. bool dontChangeBookTime = false,
  4. bool dontRealTime = false,
})

Implementation

Future<void> pushChanged(String mid, String hint,
    {bool dontChangeBookTime = false, bool dontRealTime = false}) async {
  await _datalock.synchronized(() async {
    if (!isContanedInQue(mid)) {
      logger.info('changed:$mid, via $hint');
      _dataChangedQue.add(QueData(mid: mid, dontRealTime: dontRealTime));
      notifyListeners();
      if (dontChangeBookTime == false) {
        logger.finest('shouldBookSave');
        shouldBookSave(mid);
      }
    }
  });
}