RxLoader<R> constructor
- Key? key,
- Key? spinnerKey,
- required Stream<
CommandResult< commandResults,dynamic, R> > - TargetPlatform? platform,
- double radius = 20.0,
- Color? backgroundColor,
- double? value,
- Animation<
Color> ? valueColor, - double strokeWidth = 4.0,
- RxBuilder<
R> ? dataBuilder, - PlaceHolderBuilder? placeHolderBuilder,
- ErrorBuilder<
Exception> ? errorBuilder,
Creates a new RxLoader
instance
commandResults : Stream<CommandResult<dynamic, R>>
or a RxCommand<dynamic, R>
that issues CommandResults
platform : defines platform style of the Spinner. If this is null or not provided the style of the current platform will be used
radius : radius of the Spinner
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.
spinnerKey Widget key of the Spinner Widget of the RxLoader. This can be usefull if you want to check in UI Tests if the Spinner is visible.
all other parameters please see https://docs.flutter.io/flutter/material/CircularProgressIndicator-class.html
they are ignored if the platform style is iOS.
Implementation
const RxLoader({
Key? key,
this.spinnerKey,
required this.commandResults,
this.platform,
this.radius = 20.0,
this.backgroundColor,
this.value,
this.valueColor,
this.strokeWidth = 4.0,
this.dataBuilder,
this.placeHolderBuilder,
this.errorBuilder,
}) : super(key: key);