PlatformQuery constructor

PlatformQuery({
  1. Key? key,
  2. PlatformQueryData? data,
  3. required Widget child,
})

Creates a widget that provides PlatformQueryData to its descendants.

The data and child arguments must not be null.

Implementation

PlatformQuery({
  Key? key,
  PlatformQueryData? data,
  required Widget child,
})  : data = data ?? PlatformQueryData.detect(),
      super(
        key: key,
        child: child,
      );