toWidget method
Return the associated Widget
Implementation
@override
Widget toWidget(BuildContext context) => caption == null
? Tab(icon: toIcon(icon))
: Column(
children: [toIcon(icon) ?? const Icon(Icons.error), Text(caption!)]);