value property

Complex value

Returns a map of type Map<Complex, ComplexConstant> mapping each declared enum value to an instance of ComplexConstant.

Implementation

Complex get value => const <ComplexConstant, Complex>{
      ComplexConstant.zero: Complex(0, 0),
      ComplexConstant.i: Complex(0, 1),
    }[this]!;