CarpetWidthCalculator typedef
CarpetWidthCalculator =
int Function(BuildContext context)
A type alias for a function that calculates the carpet width based on the build context.
This callback is used by CarpetStyle to dynamically determine the number of columns (tiles) across the screen width, enabling responsive layouts in the Arcane UI system. It integrates with MediaQuery for device-aware computations, such as dividing screen width by a target tile size.
Implementation
typedef CarpetWidthCalculator = int Function(BuildContext context);