maxOf method

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

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

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

Implementation

ViewPort maxOf(ViewPort left, ViewPort right) =>
    MaximalOfViewPort(left, right);