scale method
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());
Scales the number based on screen width using the context's scale method.
Example:
double width = 12.scale(context);
double scale(BuildContext context) => context.scale(toDouble());