dvSourceDeclaresHomeWidget function
Whether source is worth scanning for a home widget at all.
The cheap check the scanners do before the regular expression. It was
contains('@DVHomeWidget()'), which is the same bug as the pattern: a
file whose only home widget carried arguments was skipped before anything
looked at it.
Implementation
bool dvSourceDeclaresHomeWidget(String source) =>
source.contains('@DVHomeWidget(');