ScaleMorphingText constructor

const ScaleMorphingText({
  1. Key? key,
  2. required List<String> texts,
  3. TextStyle? textStyle,
  4. Duration speed = const Duration(milliseconds: 500),
  5. Duration pause = const Duration(seconds: 1, milliseconds: 500),
  6. bool loopForever = false,
  7. int loopCount = 1,
  8. VoidCallback? onComplete,
  9. Curve fadeInCurve = Curves.easeInExpo,
  10. Curve fadeOutCurve = Curves.easeOut,
  11. 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);