isHighDensity static method

bool isHighDensity(
  1. BuildContext context
)

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;