init static method

void init(
  1. BuildContext context
)

Implementation

static void init(BuildContext context) {
  _devicePixelRatio = MediaQuery.of(context).devicePixelRatio;
}