ButtonSplashStyle.custom constructor

ButtonSplashStyle.custom({
  1. required InteractiveInkFeatureFactory splashFactory,
  2. Color? splashColor,
  3. Color? highlightColor,
  4. double splashOpacity = 0.12,
  5. double highlightOpacity = 0.06,
  6. BorderRadius? borderRadius,
  7. bool bounded = true,
  8. WidgetStateProperty<Color?>? overlayColor,
})

Custom splash with full control

Implementation

factory ButtonSplashStyle.custom({
  required InteractiveInkFeatureFactory splashFactory,
  Color? splashColor,
  Color? highlightColor,
  double splashOpacity = 0.12,
  double highlightOpacity = 0.06,
  BorderRadius? borderRadius,
  bool bounded = true,
  WidgetStateProperty<Color?>? overlayColor,
}) {
  return ButtonSplashStyle._(
    type: ButtonSplashType.ripple,
    splashColor: splashColor,
    highlightColor: highlightColor,
    splashOpacity: splashOpacity,
    highlightOpacity: highlightOpacity,
    borderRadius: borderRadius,
    bounded: bounded,
    splashFactory: splashFactory,
    overlayColor: overlayColor,
  );
}