hasCode static method

bool hasCode(
  1. int code
)

Returns true if code is supported, otherwise false.

Implementation

static bool hasCode(final int code) {
  for (final codec in values) {
    if (codec.code == code) {
      return true;
    }
  }

  return false;
}