sp property
double
get
sp
Calculates the sp (Scalable Pixel) depending on the device's pixel density and aspect ratio
Implementation
double get sp =>
this *
(((h + w) + (DeviceData.pixelRatio * DeviceData.aspectRatio)) / 2) /
100;