The JS Error.name (e.g. NotAllowedError, TypeError) when available.
Error.name
NotAllowedError
TypeError
final String? name;