EnumWithValue constructor Null safety

const EnumWithValue(
  1. String value
)

The value will be used when toJson or toString will be called. It will also be used to check if two EnumWithValue are equal.

Implementation

const EnumWithValue(this.value);