textWidth property
double
textWidth
Implementation
double get textWidth => textField.controller!.text.isNotEmpty
? _calculateSize(
text: textField.controller!.text,
style: textField.style ?? textStyle,
textAlign: textField.textAlign,
strutStyle: textField.strutStyle,
maxLines: textField.maxLines,
textDirection: textField.textDirection ?? TextDirection.ltr,
).width
: 0;