ButtonSplashStyle.custom constructor
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,
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,
);
}