CommandBuilder<TParam, TResult> constructor

const CommandBuilder<TParam, TResult>({
  1. required Command<TParam, TResult> command,
  2. Widget onData(
    1. BuildContext context,
    2. TResult data,
    3. TParam? param
    )?,
  3. Widget onNullData(
    1. BuildContext context,
    2. TParam? param
    )?,
  4. Widget whileExecuting(
    1. BuildContext context,
    2. TResult? lastValue,
    3. TParam? param
    )?,
  5. Widget onError(
    1. BuildContext context,
    2. Object?,
    3. TResult? lastValue,
    4. TParam?,
    )?,
  6. Key? key,
})

Implementation

const CommandBuilder({
  required this.command,
  this.onData,
  this.onNullData,
  this.whileExecuting,
  this.onError,
  super.key,
});