isTokenReference property

bool get isTokenReference

Returns true if the string is a reference to another token path without any extras

Implementation

bool get isTokenReference =>
    (startsWith('{') && endsWith('}')) &&
    RegExp(r'{(.*?)}').allMatches(this).length == 1;