getEnum2 abstract method

  1. @Deprecated('Use getEnum() instead')
EnumElement? getEnum2(
  1. String name
)

Return the enum defined in this compilation unit that has the given name, or null if this compilation unit does not define an enum with the given name.

Implementation

@Deprecated('Use getEnum() instead')
EnumElement? getEnum2(String name);