isHighDensity static method
Recommended switching method to assign to TileLayer.retinaMode
Returns true
when the MediaQuery of context
returns an indication
of a high density display.
Implementation
static bool isHighDensity(BuildContext context) =>
MediaQuery.of(context).devicePixelRatio > 1.0;