EnumProperty<T extends Enum?> constructor

EnumProperty<T extends Enum?>(
  1. String name,
  2. T? value, {
  3. Object? defaultValue = kNoDefaultValue,
  4. DiagnosticLevel level = DiagnosticLevel.info,
})

Create a diagnostics property that displays an enum.

The level argument must also not be null.

Implementation

EnumProperty(
  String super.name,
  super.value, {
  super.defaultValue,
  super.level,
});