fromId static method

Deprecation? fromId(
  1. String id
)

Returns the deprecation with a given ID, or null if none exists.

Implementation

static Deprecation? fromId(String id) => Deprecation.values
    .firstWhereOrNull((deprecation) => deprecation.id == id);