dartlin 0.6.3
dartlin: ^0.6.3 copied to clipboard
Dartlin is a helper library that provides readable methods with which you can write cleaner looking code.
0.6.3 #
- Added
zipWithNextto List - Added
equals&hashCodeto thePairclass
0.6.2 #
- Added
associateWithto Iterable
0.6.1 #
- Added
mapIndexedto Iterable
0.6.0 #
- BREAKING:
T.letnow follows the Kotlin implementation. - BREAKING:
whenno longer has theorElsekey as it was broken on web, useT.orElseinstead. iffis now more aware of nullable types.- Added the
T.alsoextension method. - Added the
T.takeIfextension method. - Added the
T.takeUnlessextension method.
0.5.2 #
- Add
getOrPuttoMap.
0.5.1 #
- Add
mapNotNullandfilterNotNulltoIterable.
0.5.0 #
- Stable null-safety release.
- Updated Dart SDK constraints to
>=2.12.0 <3.0.0.
0.4.3 #
- Added
firstOrNull,singleOrNull,getOrNullto Iterable.
0.4.2 #
- Added
rangebased methods tonumtypes:downTo,toanduntil.
0.4.1 #
- Added the
repeatmethod. - Added the
T.letextension method.
0.4.0 #
- Added a
groupingBymethod for both Iterables and strings. And aGroupingclass to accommodate it. - Added a
chunkedmethod for both Iterables and strings. The returned Iterable is lazy. - Added an
associateBymethod for both Iterables and strings. - Added an
associatemethod for both Iterables and strings. - Added a
tryymethod to allow for assignable try-catch statements. - BUG FIX: The
rangemethod no longer freezes up when thestepmethod is not even/odd like the end value. - BREAKING: The
iffmethod now works for all types, not only strings. At the cost that theelseIfandorElsewill also be triggered if the returned value isnull.
0.3.0 #
- BREAKING: Renamed the
rangeslibrary tocollections.
0.2.0+1 #
- Added
iffdocumentation.
0.2.0 #
- Added
iffmethod for control flow. - BREAKING: Removed the
whensimplified if-else chain, use the newiff.
0.1.0+1 #
- Fixed issues reported in the pub score.
0.1.0 #
- Added
whenmethod for control flow. - Added
rangemethod for ranges.