sp static method

double sp(
  1. dynamic sp
)

Implementation

static double sp(dynamic sp) {
  double screenWidth = AdaptiveUI.screenWidth;

  return (sp / designWidth) * screenWidth;
}