MediaQuery constructor Null safety
- {Key? key,
- required MediaQueryData data,
- required Widget child}
Creates a widget that provides MediaQueryData to its descendants.
Implementation
const MediaQuery({
super.key,
required this.data,
required super.child,
}) : assert(child != null),
assert(data != null);