minOf method

ViewPort minOf(
  1. ViewPort left,
  2. ViewPort right
)

Provides a ViewPort which chooses the minimal ViewPort.height and ViewPort.width value out of the two ViewPort implementations given

final ViewPort vp = const ViewPorts().minOf(
  const ViewPorts().fromMediaQueryData(MediaQuery.of(context)),
  const ViewPorts().fixed(width: 1024.0),
);

Implementation

ViewPort minOf(ViewPort left, ViewPort right) =>
    MinimalOfViewPort(left, right);