addWarning method

void addWarning(
  1. String warning
)

Implementation

void addWarning(String warning) {
  var isNew = _warnings.add(warning);
  if (isNew) {
    onWarning?.call(warning);
  }
}