FadeAnimatedText constructor

FadeAnimatedText(
  1. String text, {
  2. TextAlign textAlign = TextAlign.start,
  3. TextStyle? textStyle,
  4. Duration duration = const Duration(milliseconds: 2000),
  5. double fadeInEnd = 0.5,
  6. double fadeOutBegin = 0.8,
})

Implementation

FadeAnimatedText(
  String text, {
  TextAlign textAlign = TextAlign.start,
  TextStyle? textStyle,
  Duration duration = const Duration(milliseconds: 2000),
  this.fadeInEnd = 0.5,
  this.fadeOutBegin = 0.8,
})  : assert(fadeInEnd < fadeOutBegin,
          'The "fadeInEnd" argument must be less than "fadeOutBegin"'),
      super(
        text: text,
        textAlign: textAlign,
        textStyle: textStyle,
        duration: duration,
      );