build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Override this method to build widgets that depend on the state of the listenable (e.g., the current value of the animation).

Implementation

@override
Widget build(BuildContext context) => Text(
      separator != null
          ? '$prefix${animation.value.toStringAsFixed(precision).replaceAllMapped(reg, (Match match) => '${match[1]}'
              '$separator')}$suffix'
          : '$prefix${animation.value.toStringAsFixed(precision)}$suffix',
      style: style,
      textAlign: textAlign,
      textDirection: textDirection,
      locale: locale,
      softWrap: softWrap,
      overflow: overflow,
      textScaler: textScaleFactor == null ? null : TextScaler.linear(textScaleFactor!),
      maxLines: maxLines,
      semanticsLabel: semanticsLabel,
    );