RealtimeListener constructor

RealtimeListener({
  1. required Function close,
  2. Function? onChange,
  3. Function? onError,
})

Implementation

RealtimeListener({required this.close, this.onChange, this.onError}) {
  if (this.onChange == null) {
    this.onChange = (Snapshot snapshot) {};
  }
  if (this.onError == null) {
    this.onError = (error) {};
  }
}