toWidget method

  1. @override
Widget toWidget(
  1. BuildContext context
)
override

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!)]);