SplitTextBit constructor
const
SplitTextBit({
- Key? key,
- required String text,
- Duration delay = const Duration(milliseconds: 100),
- Duration duration = const Duration(milliseconds: 600),
- Curve ease = Curves.easeOut,
- Map<
String, double> from = const {'opacity' : 0, 'y' : 40}, - Map<
String, double> to = const {'opacity' : 1, 'y' : 0}, - double threshold = 0.1,
- String rootMargin = "-100px",
- String splitType = "chars",
- TextAlign textAlign = TextAlign.center,
- TextStyle? textStyle,
- 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,
});