lowerBoundedMediaQuery method
Provides a ViewPort which will produce the data
's size values that are
lower bounded by the given height
and width
Simply said, if the data
size values are lesser than the defined bounds,
then bound values are returned (e.g. data.size.width = 300 and
width
= 400, then 400 will be returned).
width
describes the width's lower bound, height
- height's lower
bound. The bounds are 0 by default (so if both values were not
specified then the resulting object will produce the data
's size
instance behavior).
final ViewPort vp = const ViewPorts().lowerBoundedMediaQuery(
MediaQuery.of(context),
width: 200.0,
);
Implementation
ViewPort lowerBoundedMediaQuery(
MediaQueryData data, {
double height = 0,
double width = 0,
}) =>
lowerBounded(fromMediaQueryData(data), height: height, width: width);