fromValue method Null safety

ContentBlockerTriggerLoadType? fromValue(
  1. String value
)

Implementation

static ContentBlockerTriggerLoadType? fromValue(String value) {
  return (["first-party", "third-party"].contains(value))
      ? ContentBlockerTriggerLoadType._(value)
      : null;
}