toWidgetList method

List<Widget> toWidgetList(
  1. Widget mapFunc(
    1. T value
    )
)

convert List to List of widget

Implementation

List<Widget> toWidgetList(Widget Function(T value) mapFunc) =>
    isNullOrEmpty ? [] : [...this!.map(mapFunc)];