getOverlayColor method

MaterialStateProperty<Color> getOverlayColor(
  1. Color textColor
)

Implementation

MaterialStateProperty<Color> getOverlayColor(Color textColor) {
  return MaterialStateProperty.all<Color>(
    widget.highlightColor ?? textColor.withOpacity(0.1),
  );
}