getPlainTypeName function

String getPlainTypeName(
  1. InterfaceType type
)

Implementation

String getPlainTypeName(InterfaceType type) {
  return type
      .getDisplayString(withNullability: false)
      .replaceFirst(RegExp(r'<.+>'), '');
}