Allocator.simplePrefixing constructor Null safety

Allocator.simplePrefixing()

Creates a new allocator that applies naive prefixing to avoid conflicts.

This implementation is not optimized for any particular code generation style and instead takes a conservative approach of prefixing every import except references to dart:core (which are considered always imported).

The prefixes are not guaranteed to be stable and cannot be expected to have any particular value.

Implementation

factory Allocator.simplePrefixing() = _PrefixedAllocator;