RxLoader<T> constructor

const RxLoader<T>({Stream<CommandResult<T>> commandResults, TargetPlatform platform, double radius: 20.0, Color backgroundColor, double value, Animation<Color> valueColor, double strokeWidth: 4.0, BuilderFunction<T> dataBuilder, Builder placeHolderBuilder, BuilderFunction<Exception> errorBuilder, Key key })

Creates a new RxLoader instance busyEvents : Stream<bool> that controls the activity of the Spinner. On receiving true it replaces the normal widget and starts running undtil it receives a falsevalue. platform : defines platorm 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. 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({this.commandResults,
                this.platform,
                this.radius = 20.0,
                this.backgroundColor,
                this.value,
                this.valueColor,
                this.strokeWidth: 4.0,
                this.dataBuilder,
                this.placeHolderBuilder,
                this.errorBuilder,
                Key key })
        :  assert(commandResults != null), super(key: key);