import 'dart:async'; /// "무언가 바뀌었다"를 화면에 알리는 통로. 화면은 이것을 듣고 다시 읽는다. class ChangeBus { final StreamController _ctl = StreamController.broadcast(); Stream get changes => _ctl.stream; void notify() { if (!_ctl.isClosed) _ctl.add(null); } Future close() => _ctl.close(); }