density property
ExpressiveDensity
get
density
Density, in Flutter's steps (ExpressiveDensity.standard,
comfortable, compact): unset, it adapts to the platform
(ExpressiveDensity.adaptivePlatformDensity), compact where a pointer
is the norm (macOS, Windows, Linux) and standard on touch. Touch
targets keep their accessible minimum at every density.
Implementation
ExpressiveDensity get density =>
_density ?? ExpressiveDensity.adaptivePlatformDensity;