Extension<T extends Object?> constructor
const
Extension<T extends Object?> (
- T value, {
- T? defaultValue,
- required String methodName,
- MethodType methodType = MethodType.maybeMap,
- String? docComment,
- bool allowNulls = false,
IMPORTANT: All properties (other than value) need to be defined within the super constructor!
Creates an extension method for the enum.
Implementation
const Extension(
this.value, {
this.defaultValue,
required this.methodName,
this.methodType = MethodType.maybeMap,
this.docComment,
this.allowNulls = false,
});