resolveSlug method

ProviderSlug? resolveSlug()

Implementation

ProviderSlug? resolveSlug() {
  try {
    return ProviderSlug.values
        .firstWhere((slug) => slug.toString() == this.slug);
  } catch (err) {
    assert(err is StateError);
    return null;
  }
}