addWarnings method

StructuredResponse addWarnings(
  1. List<String> extra
)

Appends extra to warnings (no-op when empty).

Implementation

StructuredResponse addWarnings(List<String> extra) =>
    extra.isEmpty ? this : copyWith(warnings: [...warnings, ...extra]);