decoration property
Implementation
InputDecoration get decoration => widget.decoration.copyWith(
errorText: widget.enabled || readOnly
? widget.decoration.errorText ?? errorText
: null,
enabled: widget.enabled,
);