Extension<T extends Object?> constructor

const Extension<T extends Object?>(
  1. T value, {
  2. T? defaultValue,
  3. required String methodName,
  4. MethodType methodType = MethodType.maybeMap,
  5. String? docComment,
  6. 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,
});