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

const AnimatedConsumerWidget<K, T extends StateNotifier<K>>({
  1. Key? key,
  2. Widget onLoading()?,
  3. Widget onError(
    1. String error
    )?,
  4. Widget onData(
    1. dynamic data
    )?,
  5. Widget onIdle()?,
  6. Duration animationDuration = const Duration(milliseconds: 500),
})

Implementation

const AnimatedConsumerWidget({
  super.key,
  super.onLoading,
  super.onError,
  super.onData,
  super.onIdle,
  this.animationDuration = const Duration(milliseconds: 500)
});