EnumProperty<T> constructor
Null safety
- String name,
- T? value,
- {Object? defaultValue = kNoDefaultValue,
- 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,
}) : assert(level != null);