separated method

List<Widget> separated(
  1. Widget separator
)

Implementation

List<Widget> separated(Widget separator) {
  if (this == null || this!.isEmpty) return [];
  return this!.expand((w) => [w, separator]).toList()..removeLast();
}