nameFor method
The block's name when exactly one declared block matches (or the name it was serialized with), else null.
Implementation
String? nameFor(CapturedDraw draw) {
if (resolvedName != null) return resolvedName;
final candidates = candidatesFor(draw);
return candidates.length == 1 ? candidates.single.name : null;
}