fixed method

ViewPort fixed({
  1. double height = double.infinity,
  2. double width = double.infinity,
})

Provides a ViewPort which holds the given height and width statically. Arguments are set to double.infinity by default.

const ViewPorts().fixed(height: 400, width: 500);

Implementation

ViewPort fixed({
  double height = double.infinity,
  double width = double.infinity,
}) =>
    FixedViewPort(height: height, width: width);