How to debounce Textfield onChange in Dart?

后端 未结 9 1191
攒了一身酷
攒了一身酷 2020-12-03 04:49

I\'m trying to develop a TextField that update the data on a Firestore database when they change. It seems to work but I need to prevent the onChange event to fire multiple

9条回答
  •  醉梦人生
    2020-12-03 04:59

    You can use rxdart package to create an Observable using a stream then debounce it as per your requirements. I think this link would help you get started.

提交回复
热议问题