ButtonSplashStyle.highlight constructor

ButtonSplashStyle.highlight({
  1. Color? highlightColor,
  2. double highlightOpacity = 0.08,
  3. BorderRadius? borderRadius,
  4. WidgetStateProperty<Color?>? overlayColor,
})

Subtle highlight effect without ripple animation Good for minimal/clean designs

Implementation

factory ButtonSplashStyle.highlight({
  Color? highlightColor,
  double highlightOpacity = 0.08,
  BorderRadius? borderRadius,
  WidgetStateProperty<Color?>? overlayColor,
}) {
  return ButtonSplashStyle._(
    type: ButtonSplashType.highlight,
    highlightColor: highlightColor,
    highlightOpacity: highlightOpacity,
    borderRadius: borderRadius,
    splashFactory: NoSplash.splashFactory,
    overlayColor: overlayColor,
  );
}