getHighlightElevation method

double getHighlightElevation(
  1. MaterialButton button
)

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

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

Implementation

double getHighlightElevation(MaterialButton button) => button.highlightElevation ?? 8.0;