ScaleMorphingText constructor
const
ScaleMorphingText({
- Key? key,
- required List<
String> texts, - TextStyle? textStyle,
- Duration speed = const Duration(milliseconds: 500),
- Duration pause = const Duration(seconds: 1, milliseconds: 500),
- bool loopForever = false,
- int loopCount = 1,
- VoidCallback? onComplete,
- Curve fadeInCurve = Curves.easeInExpo,
- Curve fadeOutCurve = Curves.easeOut,
- Curve progressCurve = Curves.easeIn,
Implementation
const ScaleMorphingText({
Key? key,
/*required*/ required this.texts,
this.textStyle,
this.speed = const Duration(milliseconds: 500),
this.pause = const Duration(seconds: 1, milliseconds: 500),
this.loopForever = false,
this.loopCount = 1,
this.onComplete,
this.fadeInCurve = Curves.easeInExpo,
this.fadeOutCurve = Curves.easeOut,
this.progressCurve = Curves.easeIn,
}) : assert(
loopCount > 0,
"'loopCount' should have value greater than 0",
),
super(key: key);