immutables 0.1.0
immutables: ^0.1.0

Dart native js
Flutter Android iOS web

Immutable structures in dart. Laconic code without overhead.

Imutable data structures #

List, Map #

Examples #

var c = IList<int>([1, 2, 3]);

print((c + 4).value); // [1, 2, 3, 4]
print(c.value); // [1, 2, 3]

print((c - 3).value); // [1, 2]
print(c.value); // [1, 2, 3]

print(c.take(2).value); // [1, 2]
print(c.value); // [1, 2]

print(c.filter((_) => 1 == _ || 2 == _).value); // [1, 2]
print(c.value); // [1, 2, 3]
0
likes
100
pub points
0%
popularity

Immutable structures in dart. Laconic code without overhead.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

shindakioku@gmail.com

License

MIT (LICENSE)

More

Packages that depend on immutables