dvHomeWidgetDeclaredName function

String dvHomeWidgetDeclaredName(
  1. RegExpMatch match
)

The name declared under the @DVHomeWidget in match.

The function's name or the class's, whichever shape it was written in.

Implementation

String dvHomeWidgetDeclaredName(RegExpMatch match) =>
    match.namedGroup('widgetClass') ?? match.namedGroup('widgetFunction')!;