matches method

bool matches(
  1. String other
)

Returns true if this DEX name matches the given string value (case-insensitive).

DexEnum.whirlpool.matches('Whirlpool'); // Returns true
DexEnum.whirlpool.matches('whirlpool'); // Returns true

Implementation

bool matches(String other) => value.toLowerCase() == other.toLowerCase();