GKTextEffect constructor
const
GKTextEffect({
- Key? key,
- required String text,
- required GKTextEffectType effect,
- TextStyle? style,
- Duration duration = const Duration(milliseconds: 2000),
- VoidCallback? onComplete,
Creates a GKTextEffect.
text is the string to animate.
effect selects the animation type.
style is the text style applied to each character.
duration controls the total animation length (default 2000ms).
onComplete is called when the animation finishes.
Implementation
const GKTextEffect({
super.key,
required this.text,
required this.effect,
this.style,
this.duration = const Duration(milliseconds: 2000),
this.onComplete,
});