widget property

Widget? get widget

Do that:

return key.currentWidget

Implementation

Widget? get widget => currentWidget;