subscribe1 [flutter] subscribe react에서 쓰던 방식이랑 조금은 달라서 적어봅니다. [websocket] 데이터갱신 -> rqc add (subscribe) rqc get -> view 초기 [api] 데이터 + rqc update import 'dart:async'; // subscribe class StreamBroadcast { late final StreamController streamController = StreamController.broadcast(); late final Stream stream = streamController.stream; StreamSubscription get( void Function(T event) pCallbackFuntion, isValidate) { // isValidate 체크 로.. 2023. 9. 11. 이전 1 다음