CellFactory class
Constructors
-
CellFactory({Key? key, required Widget child, Map<
Type, CellBuilder> builders = const {}, Map<Type, CellBuilder> compact = const {}, Map<Type, CellBuilder> large = const {}}) -
const
-
CellFactory.override({required BuildContext context, required Widget child, Map<
Type, CellBuilder> builders = const {}}) -
factory
Methods
-
buildCell(
BuildContext context, dynamic item, {Widget defaultWidget = const SizedBox.shrink()}) → Widget -
getBuilder(
dynamic item) → CellBuilder? -
getBuilderForType(
Type type) → CellBuilder? -
getCompactBuilder(
dynamic item) → CellBuilder? -
getLargeBuilder(
dynamic item) → CellBuilder? -
updateShouldNotify(
covariant InheritedWidget oldWidget) → bool - Whether the framework should notify widgets that inherit from this widget.
Static Methods
-
of(
BuildContext context) → CellFactory?