Returns true if this field has a warning message.
true
This is a convenience getter that checks if warning is not null.
null
bool get hasWarning => warning != null;