limit method

  1. @widgetFactory
Widget limit({
  1. double maxHeight = double.infinity,
  2. double maxWidth = double.infinity,
})

Limits this widget's size only when it's unconstrained.

Implementation

@widgetFactory
Widget limit({
  double maxHeight = double.infinity,
  double maxWidth = double.infinity,
}) {
  return FleetLimitedBox(
    maxHeight: maxHeight,
    maxWidth: maxWidth,
    child: this,
  );
}