TimeText constructor

const TimeText({
  1. Key? key,
  2. Formatter? formatter,
  3. Duration duration = const Duration(seconds: 1),
  4. TextStyle? style,
  5. StrutStyle? strutStyle,
  6. TextAlign? textAlign,
  7. TextDirection? textDirection,
  8. Locale? locale,
  9. bool? softWrap,
  10. TextOverflow? overflow,
  11. double? textScaleFactor,
  12. int? maxLines,
  13. String? semanticsLabel,
  14. TextWidthBasis? textWidthBasis,
  15. TextHeightBehavior? textHeightBehavior,
  16. Color? selectionColor,
})

Creates a time text widget.

If the style argument is null, the text will use the style from the closest enclosing DefaultTextStyle.

The overflow property's behavior is affected by the softWrap argument. If the softWrap is true or null, the glyph causing overflow, and those that follow, will not be rendered. Otherwise, it will be shown with the given overflow option

Implementation

const TimeText({
  super.key,
  this.formatter,
  this.duration = const Duration(seconds: 1),
  this.style,
  this.strutStyle,
  this.textAlign,
  this.textDirection,
  this.locale,
  this.softWrap,
  this.overflow,
  this.textScaleFactor,
  this.maxLines,
  this.semanticsLabel,
  this.textWidthBasis,
  this.textHeightBehavior,
  this.selectionColor,
});