CrossAxisLayoutKey typedef

CrossAxisLayoutKey = Object? Function(double crossAxisExtent)

Maps the cross axis extent available to the items to a value that changes whenever their main axis extents may change, for example (width) => math.min(width, maxColumnWidth).

Called during layout, so it must be cheap and free of side effects. Return a value with value equality, such as a number or a record: a new list or object for the same extent refreshes all estimates on every rebuild.

Implementation

typedef CrossAxisLayoutKey = Object? Function(double crossAxisExtent);