SplitTextBit constructor

const SplitTextBit({
  1. Key? key,
  2. required String text,
  3. Duration delay = const Duration(milliseconds: 100),
  4. Duration duration = const Duration(milliseconds: 600),
  5. Curve ease = Curves.easeOut,
  6. Map<String, double> from = const {'opacity' : 0, 'y' : 40},
  7. Map<String, double> to = const {'opacity' : 1, 'y' : 0},
  8. double threshold = 0.1,
  9. String rootMargin = "-100px",
  10. String splitType = "chars",
  11. TextAlign textAlign = TextAlign.center,
  12. TextStyle? textStyle,
  13. void onLetterAnimationComplete()?,
})

Implementation

const SplitTextBit({
  super.key,
  required this.text,
  this.delay = const Duration(milliseconds: 100),
  this.duration = const Duration(milliseconds: 600),
  this.ease = Curves.easeOut,
  this.from = const {'opacity': 0, 'y': 40},
  this.to = const {'opacity': 1, 'y': 0},
  this.threshold = 0.1,
  this.rootMargin = "-100px",
  this.splitType = "chars",
  this.textAlign = TextAlign.center,
  this.textStyle,
  this.onLetterAnimationComplete,
});