FluxTransformer constructor

FluxTransformer({
  1. bool sync = false,
  2. bool? cancelOnError = true,
  3. FluxResponseMode responseMode = FluxResponseMode.full,
})

Implementation

FluxTransformer(
    {bool sync = false,
    this.cancelOnError = true,
    this.responseMode = FluxResponseMode.full}) {
  _controller = StreamController<FluxRecord>(
      onListen: _onListen,
      onCancel: _onCancel,
      onPause: () {
        _subscription!.pause();
      },
      onResume: () {
        _subscription!.resume();
      },
      sync: sync);
}