getName method

String getName()

Implementation

String getName() {
  var fullName = super.toString();
  // Expected: Instance of '{classname}'

  var exp = RegExp(r"^Instance of '(.*?)'$");
  return exp.firstMatch(fullName)!.group(1)!;
}