resolve method
- double devicePixelRatio
Resolves the effective multiplier, capped at maxDensity. For auto,
falls back to the supplied devicePixelRatio.
Implementation
double resolve(double devicePixelRatio) {
final density = value ?? devicePixelRatio;
if (density.isNaN || density <= 0) return 1.0;
return density > maxDensity ? maxDensity : density;
}