switch_when 0.0.2 copy "switch_when: ^0.0.2" to clipboard
switch_when: ^0.0.2 copied to clipboard

A function library that provides a more advanced switch, does not restrict Case expressions to be constants, similar to kotlin's when method

[0.0.2] - Release date: 2021-07-05. #

  • Second version: Add whenBool & whenBoolSafe Method; The library path is changed from index to switch_when.

[0.0.1] - Release date: 2021-07-02. #

  • First version: initial release.
5
likes
160
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.26 - 2025.03.10

A function library that provides a more advanced switch, does not restrict Case expressions to be constants, similar to kotlin's when method

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, tuple

More

Packages that depend on switch_when