Union<A, B> constructor

const Union<A, B>(
  1. dynamic value
)

Implementation

const Union(this.value) : assert(value is A || value is B);