import 'package:flutter/material.dart'; import 'package:ansu_ui/extension/num_extension.dart'; extension SeparateExt on List { List sepWidget({Widget? separate}) { if (this.isEmpty) return []; return List.generate(this.length * 2 - 1, (index) { if (index.isEven) return this[index ~/ 2]; else return separate ?? 10.wb; }); } }