ResourceStateBuilder<T> constructor
const
ResourceStateBuilder<T> ({
- required ResourceState<
T> resource, - required Widget builder(
- BuildContext context,
- T value,
- Widget? child
- Key? key,
- Widget? childErro,
- Widget? childWaiting,
- Widget? childEmpty,
- Widget? childLoading,
- bool keepAlive = true,
- Widget childDefault = const SizedBox.shrink(),
- bool ignoreEmpty = true,
- 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,
});