getElevation method

double getElevation(
  1. MaterialButton button
)

The button's elevation when it is enabled and has not been pressed.

Returns the button's MaterialButton.elevation if it is non-null, otherwise it is 2.0.

Implementation

double getElevation(MaterialButton button) => button.elevation ?? 2.0;