PlatformQuery constructor
PlatformQuery({
- Key? key,
- PlatformQueryData? data,
- 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,
);