maxSpace property

Widget get maxSpace

A widget that takes, at most, an amount of space in a Row, Column,or Flex widget. The maxSpace property converts the integer value to a MaxSpace widget, which is useful for creating flexible layouts where certain elements need to occupy a specific amount of space.

Implementation

Widget get maxSpace => MaxSpace(validate().toDouble());