getHoverElevation method
- MaterialButton button
The button
's elevation when it is enabled and has focus.
Returns the button's MaterialButton.hoverElevation if it is non-null, otherwise the highlight elevation is 4.0.
Implementation
double getHoverElevation(MaterialButton button) => button.hoverElevation ?? 4.0;