notationIsLiteral function
Whether v, a signature's default, is a value as written (a number,
true, false, null, a string in quotes, a list or a map): what x=@0.5
takes after its @.
Implementation
bool notationIsLiteral(String v) =>
num.tryParse(v) != null ||
const {'true', 'false', 'null'}.contains(v) ||
(v.length > 1 && v.startsWith('"') && v.endsWith('"')) ||
(v.startsWith('[') && v.endsWith(']')) ||
(v.startsWith('{"') && v.endsWith('}'));