scale method

double scale(
  1. BuildContext context
)

Scales the number based on screen width using the context's scale method.

Example:

double width = 12.scale(context);

Implementation

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