RxCommandBuilder<T, R> constructor

const RxCommandBuilder<T, R>({
  1. Key? key,
  2. required Stream<CommandResult<T, R>> commandResults,
  3. TargetPlatform? platform,
  4. BusyBuilder? busyBuilder,
  5. RxBuilder<R>? dataBuilder,
  6. PlaceHolderBuilder? placeHolderBuilder,
  7. ErrorBuilder<CommandError<T>>? errorBuilder,
})

Creates a new RxCommandBuilder instance commandResults : Stream<CommandResult<dynamic, R>> or a RxCommand<dynamic, R> that issues CommandResults busyBuilder : Builder that will be called as soon as an event with isExecuting==true. dataBuilder : Builder that will be called as soon as an event with data is received. It will get passed the data field of the CommandResult. If this is null a Container will be created instead. placeHolderBuilder : Builder that will be called as soon as an event with data==null is received. If this is null a Container will be created instead. dataBuilder : Builder that will be called as soon as an event with an error is received. It will get passed the error field of the CommandResult. If this is null a Container will be created instead.

Implementation

const RxCommandBuilder({
  Key? key,
  required this.commandResults,
  this.platform,
  this.busyBuilder,
  this.dataBuilder,
  this.placeHolderBuilder,
  this.errorBuilder,
}) : super(key: key);