LStatusBuilder<T> constructor

const LStatusBuilder<T>(
  1. LxReactive<LxStatus<T>> x, {
  2. Key? key,
  3. required Widget onSuccess(
    1. T data
    ),
  4. Widget onWaiting()?,
  5. Widget onError(
    1. Object error,
    2. StackTrace? stackTrace
    )?,
  6. Widget onIdle()?,
})

Creates a status-aware builder.

Implementation

const LStatusBuilder(
  this.x, {
  super.key,
  required this.onSuccess,
  this.onWaiting,
  this.onError,
  this.onIdle,
});