enumValueForDartObject<T> method

T enumValueForDartObject<T>(
  1. DartObject source,
  2. List<T> items,
  3. String name(
    1. T
    )
)

Implementation

T enumValueForDartObject<T>(
  DartObject source,
  List<T> items,
  String Function(T) name,
) =>
    items[source.getField('index')!.toIntValue()!];