Repository navigation
v0.4.0
Iterable
- PR-41 New
Iterable<T>.containsAny(Iterable<T>)extension - PR-46 New
Iterable<num>.median()extension - PR-53 New
Iterable<T>.asStream()extension converts any Iterable to a Stream - PR-59 New
Iterable<T>.cachedextension creates a cachedIterablepreventing lazy operators such as.mapto execute again - PR-56 Make
Iterable<Iterable<T>>.flatten()typesafe and returnIterable<T>instead ofIterable<dynamic> - PR-62 New
Iterable<T>.chunkWhile(bool Function(T, T) predicate): Iterable<List<E>>extension splits a collection into a lazy Iterables of chunks, where chunks are created as long aspredicateis true for a pair of entries. - PR-62 New
Iterable<T>.splitWhen(bool Function(E, E) predicate): Iterable<List<E>>extension splits a collection into a lazyIterable, where each split will be make ifpredicatereturnstruefor a pair of entries. - PR-54 New
Iterable<Future<T>>.asStreamAwaited(): Stream<T>extension to create a stream from a group of futures.
String
- PR-72 New
String.isNullOrEmptyextension - PR-43 New
String.toInt({int radix})extension as alias forint.parse(String, {int radix})(alsoString.toIntOrNull({int radix})) - PR-75 Deprecate
String.charsin favour ofString.charactersfrom the officialcharacterspackage.
Ranges
- PR-74 New
Comparable<T>.rangeTo(Comparable<T> end)extension to create ranges ofDateTimeorString. - PR-45 New
num.between(num first, num endInclusive): boolextension - PR-45 New
num.inRange(Range<num> range): boolextension - PR-45 New
Comparable<T>.between(T first, T endInclusive): boolextension - PR-45 New
Comparable<T>.inRange(ComparableRange<T> range): boolextension
Thanks to our external contributors @ThinkDigitalSoftware, @shinayser, @yongjhih, @AKushWarrior, @rrousselGit, @simolus3 and @MohiuddinM!