getClassName static method

String getClassName(
  1. Type type
)

Get the root class in case of generics

Implementation

static String getClassName(Type type) => type.toString().split("<")[0];