update separate

null_safety
张萌 4 years ago
parent 72f3bb88da
commit 0c9ee83119

@ -1,5 +1,5 @@
import 'package:ansu_ui/ansu_ui.dart'; import 'package:ansu_ui/ansu_ui.dart';
extension SeparateExt<T> on List { extension SeparateExt<T> on List<T> {
List<T> sep([T separate]) { List<T> sep([T separate]) {
return List.generate(this.length * 2 - 1, (index) { return List.generate(this.length * 2 - 1, (index) {
if (index.isEven) if (index.isEven)

Loading…
Cancel
Save