getConstraints method

BoxConstraints getConstraints(
  1. MaterialButton button
)

The BoxConstraints that the define the button's size.

By default this method just returns constraints. Subclasses could override this method to return a value that was, for example, based on the button's type.

Implementation

BoxConstraints getConstraints(MaterialButton button) => constraints;