CollectionScreen<T extends Object> constructor
const
CollectionScreen<T extends Object> ({
- Key? key,
- Widget groupBuilder(
- String? property,
- dynamic grouped
- required Stream<
List< data,T> > - Future<
bool> onLoadMore()?, - required Widget itemBuilder(
- T item
- CollectionItemMapper mapper = _defaultCollectionItemMapper,
- CollectionItemIdentifier identifier = _defaultCollectionItemIdentifier,
- List<
String> dimensions = const [], - IconData emptyIcon = Icons.warning,
- required String typeName,
- String? typeNamePlural,
Implementation
const CollectionScreen(
{super.key,
this.groupBuilder = _defaultGroupBuilder,
required this.data,
this.onLoadMore,
required this.itemBuilder,
this.mapper = _defaultCollectionItemMapper,
this.identifier = _defaultCollectionItemIdentifier,
this.dimensions = const [],
this.emptyIcon = Icons.warning,
required this.typeName,
this.typeNamePlural});