Add EMPTY field in Symbol class, Symbol.EMPTY #16273
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
core-2
library-core
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by andrew.m...@gmail.com
Add EMPTY field in Symbol class, Symbol.EMPTY.
+++
class Symbol {
static final Symbol EMPTY = const Symbol("");
}
+++
OR even so (if possible)
+++
class Symbol {
static const Symbol EMPTY = const Symbol("");
}
+++
Usage:
+++
type.newInstance(Symbol.EMPTY, []);
+++
I think that it will not add a "large overhead" compared to this.
+++
type.newInstance(const Symbol(""), []);
+++
The text was updated successfully, but these errors were encountered: