iterable_extensions 1.1.0 copy "iterable_extensions: ^1.1.0" to clipboard
iterable_extensions: ^1.1.0 copied to clipboard

A comprehensive collection of useful extension methods for Dart's Iterable class, providing null-safe operations, collection utilities, and functional programming helpers.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.1.0 - 2025-08-25 #

Added #

  • New extension method indexOfOrNull(value)
    Returns the index of the first occurrence of a given value in the iterable, or null if the value is not found.

1.0.0 - 2025-08-23 #

Added #

  • Initial release of iterable_extensions package
  • Null-safe extension methods:
    • firstWhereOrNull()
    • lastWhereOrNull()
    • singleWhereOrNull()
    • firstOrNull getter
    • lastOrNull getter
    • singleOrNull getter
    • elementAtOrNull()
  • Collection utility methods:
    • groupBy()
    • distinctBy() and distinct getter
    • chunked()
    • reversed getter
    • + operator for concatenation
  • Functional programming helpers:
    • all() method (alias for every())
    • none() method
    • forEachIndexed()
    • indexed getter
  • Mathematical operations:
    • sum() and sumOrNull getter
    • average getter
    • minOrNull and maxOrNull getters
    • minByOrNull() and maxByOrNull()
  • Comprehensive documentation with usage examples
  • Full test coverage
  • Example project demonstrating usage

Changed #

  • N/A (initial release)

Deprecated #

  • N/A (initial release)

Removed #

  • N/A (initial release)

Fixed #

  • N/A (initial release)

Security #

  • N/A (initial release)
0
likes
160
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

A comprehensive collection of useful extension methods for Dart's Iterable class, providing null-safe operations, collection utilities, and functional programming helpers.

Repository (GitHub)
View/report issues

Topics

#extensions #collections #utilities #functional-programming #null-safety

Documentation

API reference

License

MIT (license)

More

Packages that depend on iterable_extensions