s method

double s(
  1. BuildContext context
)

Short alias for scale. Scales based on screen width.

Example:

double width = 12.s(context);

Implementation

double s(BuildContext context) => context.scale(toDouble());