getHoverColor method

Color getHoverColor(
  1. MaterialButton button
)

The fill color of the button when it has input focus.

Returns the button's MaterialButton.focusColor if it is non-null. Otherwise the focus color depends on getTextTheme:

Implementation

Color getHoverColor(MaterialButton button) {
  return button.hoverColor ?? _hoverColor ?? getTextColor(button).withOpacity(0.04);
}