RelativeBuilderFunction typedef

RelativeBuilderFunction = Widget Function(BuildContext context, double height, double width, double sy(num), double sx(num))

Signature for the builder function used by RelativeBuilder.

Provides the current BuildContext, the window height and width, and helper functions sy and sx for scaling values relative to the screen size.

Implementation

typedef RelativeBuilderFunction = Widget Function(
  BuildContext context,
  double height,
  double width,
  double Function(num) sy,
  double Function(num) sx,
);