valueEquals method

bool valueEquals(
  1. dynamic o
)

Checks whether the value of the union equals the supplied value.

Implementation

bool valueEquals(o) => map((t) => t == o, (t) => t == o);