JClass.forName constructor

JClass.forName(
  1. String name
)

Constructs a JClass associated with the class or interface with the given string name.

Implementation

JClass.forName(String name)
    : super.fromReference(using((arena) {
        final cls = Jni.accessors.getClass(name.toNativeChars(arena));
        return JGlobalReference(cls.checkedClassRef);
      }));