RxCommandBuilder<T> constructor

const RxCommandBuilder<T>({Key key, Stream<CommandResult<T>> commandResults, TargetPlatform platform, BusyBuilder busyBuilder, RxBuilder<T> dataBuilder, PlaceHolderBuilder placeHolderBuilder, ErrorBuilder<Exception> errorBuilder })

Creates a new RxCommandBuilder instance commandResults : Stream<CommandResult<T>> or a RxCommand<T> 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 feeld 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 feeld of the CommandResult. If this is null a Container will be created instead.

Implementation

const RxCommandBuilder({
  Key key,
  this.commandResults,
  this.platform,
  this.busyBuilder,
  this.dataBuilder,
  this.placeHolderBuilder,
  this.errorBuilder,
})  : assert(commandResults != null),
      super(key: key);