showWidgetsWithLinkData method

  1. @override
List<Widget> showWidgetsWithLinkData(
  1. BuildContext context,
  2. LinkData linkData
)

Allows you to add any widget to a link.

You have LinkData here so you can customize the widgets to individual link.

Recommendation: use Positioned as the root widget.

Implementation

@override
List<Widget> showWidgetsWithLinkData(
    BuildContext context, LinkData linkData) {
  return [
    if (selectedLinkId == linkData.id) showLinkOptions(context, linkData),
  ];
}