GKTextEffect constructor

const GKTextEffect({
  1. Key? key,
  2. required String text,
  3. required GKTextEffectType effect,
  4. TextStyle? style,
  5. Duration duration = const Duration(milliseconds: 2000),
  6. 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,
});