Whether the currentWarnings list contains any warnings.
@override bool get hasWarning { return state.hasWarning; }