TypingTextAnimation constructor
const
TypingTextAnimation({
- Key? key,
- required String text,
- TextStyle? style,
- Duration typingSpeed = const Duration(milliseconds: 100),
- Duration cursorBlinkSpeed = const Duration(milliseconds: 500),
- bool showCursor = true,
- Widget cursor = const Text('|', style: TextStyle(fontWeight: FontWeight.bold)),
- VoidCallback? onFinished,
Implementation
const TypingTextAnimation({
Key? key,
required this.text,
this.style,
this.typingSpeed = const Duration(milliseconds: 100), // Speed of each character appearing
this.cursorBlinkSpeed = const Duration(milliseconds: 500),
this.showCursor = true,
this.cursor = const Text('|', style: TextStyle(fontWeight: FontWeight.bold)), // Default cursor
this.onFinished,
}) : super(key: key);