parse static method

Csp parse(
  1. String input
)

Implementation

static Csp parse(String input) {
  final result = tryParse(input);
  if (result == null) {
    throw FormatException('Invalid CSP policy: "$input"');
  }
  return result;
}