ResourceStateBuilder<T> constructor

const ResourceStateBuilder<T>({
  1. required ResourceState<T> resource,
  2. required Widget builder(
    1. BuildContext context,
    2. T value,
    3. Widget? child
    ),
  3. Key? key,
  4. Widget? childErro,
  5. Widget? childWaiting,
  6. Widget? childEmpty,
  7. Widget? childLoading,
  8. bool keepAlive = true,
  9. Widget childDefault = const SizedBox.shrink(),
  10. bool ignoreEmpty = true,
  11. Widget? child,
})

Implementation

const ResourceStateBuilder({
  required this.resource, required this.builder, super.key,
  this.childErro,
  this.childWaiting,
  this.childEmpty,
  this.childLoading,
  this.keepAlive = true,
  this.childDefault = const SizedBox.shrink(),
  this.ignoreEmpty = true,
  this.child,
});