getSize method Null safety

Size getSize(
  1. BoxConstraints constraints
)

The size of this object given the incoming constraints.

Defaults to the biggest size that satisfies the given constraints.

Implementation

Size getSize(BoxConstraints constraints) => constraints.biggest;