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

SharedCollectionBuilderComponent<C extends Collection<Model>, M extends Model>.auto({
  1. required String tag,
  2. required Widget builder(
    1. BuildContext,
    2. List<M> models
    ),
  3. Widget emptyBuilder(
    1. BuildContext
    )?,
  4. Widget loadingBuilder(
    1. BuildContext
    )?,
  5. int delayInMilliseconds = 1000,
  6. Map<String, dynamic>? where,
  7. Future<List<M>> sort(
    1. List<M>
    )?,
})

Implementation

factory SharedCollectionBuilderComponent.auto({
  required String tag,
  required Widget Function(BuildContext, List<M> models) builder,
  Widget Function(BuildContext)? emptyBuilder,
  Widget Function(BuildContext)? loadingBuilder,
  int delayInMilliseconds = 1000,
  Map<String, dynamic>? where,
  Future<List<M>> Function(List<M>)? sort,
}) {
  return SharedCollectionBuilderComponent(
    tag: tag,
    builder: builder,
    emptyBuilder: emptyBuilder,
    loadingBuilder: loadingBuilder,
    delayInMilliseconds: delayInMilliseconds,
    sort: sort,
    where: where,
  );
}