reflush method

void reflush({
  1. bool hasModify = false,
})

发送通知,但值仍为本身

Implementation

void reflush({bool hasModify = false}) {
  _hasNotify = true;
  for (int i = 0; i < _listeners.length; ++i) {
    final item = _listeners[i];
    try {
      item.onActive(
        _value,
        hasModify,
      );
    } catch (e) {
      Loggerxx.to().severe(LogxxItem(
        prefix: "MyStream.notify Error",
        msg: [e.toString()],
      ));
    }
  }
}