getGenericTypes static method

List<DartType> getGenericTypes(
  1. DartType type
)

Implementation

static List<DartType> getGenericTypes(DartType type) {
  return type is ParameterizedType ? type.typeArguments : const [];
}