RxCommandBuilder<T, R> constructor
- Key? key,
- required Stream<
CommandResult< commandResults,T, R> > - TargetPlatform? platform,
- BusyBuilder? busyBuilder,
- RxBuilder<
R> ? dataBuilder, - PlaceHolderBuilder? placeHolderBuilder,
- ErrorBuilder<
CommandError< ? errorBuilder,T> >
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);