matches method

bool matches(
  1. String value
)

Returns true if value matches this instance type.

Implementation

bool matches(String value) {
  return encodeAsString() == value;
}