scrubbed property

String scrubbed
latefinal

Pretty version of the name, with some of the irrelevant information removed from it.

Note: we still expect this name to be unique within compilation, so we are not removing any details that are used for disambiguation. The only exception are type testing stubs, these refer to type names and types names are not bound to be unique between compilations.

Implementation

late final String scrubbed =
    raw.replaceAll(isStub ? _stubScrubbingRe : _scrubbingRe, '');