scaleBoth method

double scaleBoth(
  1. BuildContext context
)

Scales the number based on both screen width and height using scaleBoth.

Example:

double size = 12.scaleBoth(context);

Implementation

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