ktc_dart 2.0.0
ktc_dart: ^2.0.0 copied to clipboard
A package that implemented the features of the `Collections` library of `Kotlin` (v1.5).
1.0.1 #
Fixes #
- Fixed
sortedByandsortedByDescendingmethods where list elements were lost during sorting.
Chore #
- Minimum Dart SDK version is now 3.1.0.
Deprecations #
- Deprecated
sumgetter. Usesumfrom the collection package instead. - Deprecated
whereNotNullgetter. UsewhereNotNull()from the collection package ornonNullsfrom the Dart SDK instead. - Deprecated
indexOf()method. UseindexOf()from the Dart SDK instead. - Deprecated
lastIndexOf()method. UselastIndexOf()from the Dart SDK instead. - Deprecated
lastOrNullgetter. UselastOrNullfrom the collection package instead. - Deprecated
lastWhereOrNull()method. UselastWhereOrNull()from the collection package instead. - Deprecated
reversedgetter. Usereversedfrom the Dart SDK instead. - Deprecated
shuffled()method. Useshuffled()from the collection package instead. - Deprecated
singleOrNullgetter. UsesingleOrNullfrom the collection package instead. - Deprecated
singleWhereOrNull()method. UsesingleWhereOrNull()from the collection package instead. - Deprecated
sortedBy()method. UsesortedBy()from the collection package instead. - Deprecated
whereIsInstance<T>()method. UsewhereType<T>()from the Dart SDK instead. - Deprecated
whereNot()method. UsewhereNot()from the collection package instead. - Deprecated
withIndexgetter. Useindexedfrom the Dart SDK instead. - Deprecated
Pairclass. Will be converted to Record since Dart 3.0 supports Records. - Deprecated
IndexedValueclass. Will be removed since Dart SDK supports indexed getter. - Deprecated
IndexedValueIterableclass. Will be removed since Dart SDK supports indexed getter. - Deprecated
IndexedValueIteratorclass. Will be removed since Dart SDK supports indexed getter.
0.3.0 #
Updates #
- Implemented
Set. - Implemented
Collectionlibrary fromKotlintoKtcIterable. - Removed all
Iterablereturn methods inKtcList.
0.1.2 #
Amends #
- Changed behavior of
>>operator. It returns an emptyIterablewhen thecountparameter is greater than itslength.