SharedCollectionBuilderComponent<C extends Collection<Model>, M extends Model>.items constructor

SharedCollectionBuilderComponent<C extends Collection<Model>, M extends Model>.items({
  1. required List<M> items,
  2. required Widget builder(
    1. BuildContext,
    2. List<M> models
    ),
  3. Widget emptyBuilder(
    1. BuildContext
    )?,
  4. Widget loadingBuilder(
    1. BuildContext
    )?,
})

Implementation

factory SharedCollectionBuilderComponent.items({
  required List<M> items,
  required Widget Function(BuildContext, List<M> models) builder,
  Widget Function(BuildContext)? emptyBuilder,
  Widget Function(BuildContext)? loadingBuilder,
}) {
  return SharedCollectionBuilderComponent(
    items: items,
    builder: builder,
    emptyBuilder: emptyBuilder,
    loadingBuilder: loadingBuilder,
  );
}