ConsumerWidget<K, T extends StateNotifier<K>> constructor

const ConsumerWidget<K, T extends StateNotifier<K>>({
  1. Key? key,
  2. Widget onLoading()?,
  3. Widget onError(
    1. String error
    )?,
  4. Widget onData(
    1. K data
    )?,
  5. Widget onIdle()?,
})

Implementation

const ConsumerWidget({
  super.key,
  this.onLoading,
  this.onError,
  this.onData,
  this.onIdle
});