ButtonAnimationStyle.shine constructor
ButtonAnimationStyle.shine({})
Glossy highlight sweep across button Best for premium features
Implementation
factory ButtonAnimationStyle.shine({
Duration duration = const Duration(milliseconds: 600),
Curve curve = Curves.easeInOut,
bool enableHapticFeedback = false,
Color shineColor = Colors.white,
double shineWidth = 0.3,
}) {
return ButtonAnimationStyle._(
type: ButtonAnimationType.shine,
duration: duration,
curve: curve,
enableHapticFeedback: enableHapticFeedback,
shineColor: shineColor,
shineWidth: shineWidth,
);
}