sp static method

double sp(
  1. num scalablePixel
)

Calculates the sp (Scalable Pixel) depending on the device's pixel density and aspect ratio

Implementation

static double sp(num scalablePixel) => scalablePixel.sp;