runtimeTypeNameUnsafe property

String runtimeTypeNameUnsafe

Returns the runtimeType as String.

  • This is an unsafe method and should be used only for debugging.
  • If the instance is a WithRuntimeTypeNameSafe will use runtimeTypeNameSafe.

Implementation

String get runtimeTypeNameUnsafe {
  final self = this;
  if (self == null) {
    return 'Null';
  } else if (self is WithRuntimeTypeNameSafe) {
    return self.runtimeTypeNameSafe;
  } else {
    // ignore: no_runtimeType_toString
    return '${self.runtimeType}';
  }
}