interleave_iterator 0.1.2
interleave_iterator: ^0.1.2 copied to clipboard
Adds interleave and interleaveFactory extension methods to Iterable, inserting a separator between every pair of adjacent elements.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add interleave_iteratorWith Flutter:
$ flutter pub add interleave_iteratorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
interleave_iterator: ^0.1.2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:interleave_iterator/interleave_iterator.dart';