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
zipWithNext
to List - Added
equals
&hashCode
to thePair
class
0.6.2 #
- Added
associateWith
to Iterable
0.6.1 #
- Added
mapIndexed
to Iterable
0.6.0 #
- BREAKING:
T.let
now follows the Kotlin implementation. - BREAKING:
when
no longer has theorElse
key as it was broken on web, useT.orElse
instead. iff
is now more aware of nullable types.- Added the
T.also
extension method. - Added the
T.takeIf
extension method. - Added the
T.takeUnless
extension method.
0.5.2 #
- Add
getOrPut
toMap
.
0.5.1 #
- Add
mapNotNull
andfilterNotNull
toIterable
.
0.5.0 #
- Stable null-safety release.
- Updated Dart SDK constraints to
>=2.12.0 <3.0.0
.
0.4.3 #
- Added
firstOrNull
,singleOrNull
,getOrNull
to Iterable.
0.4.2 #
- Added
range
based methods tonum
types:downTo
,to
anduntil
.
0.4.1 #
- Added the
repeat
method. - Added the
T.let
extension method.
0.4.0 #
- Added a
groupingBy
method for both Iterables and strings. And aGrouping
class to accommodate it. - Added a
chunked
method for both Iterables and strings. The returned Iterable is lazy. - Added an
associateBy
method for both Iterables and strings. - Added an
associate
method for both Iterables and strings. - Added a
tryy
method to allow for assignable try-catch statements. - BUG FIX: The
range
method no longer freezes up when thestep
method is not even/odd like the end value. - BREAKING: The
iff
method now works for all types, not only strings. At the cost that theelseIf
andorElse
will also be triggered if the returned value isnull
.
0.3.0 #
- BREAKING: Renamed the
ranges
library tocollections
.
0.2.0+1 #
- Added
iff
documentation.
0.2.0 #
- Added
iff
method for control flow. - BREAKING: Removed the
when
simplified if-else chain, use the newiff
.
0.1.0+1 #
- Fixed issues reported in the pub score.
0.1.0 #
- Added
when
method for control flow. - Added
range
method for ranges.