list_accessors 0.1.0 copy "list_accessors: ^0.1.0" to clipboard
list_accessors: ^0.1.0 copied to clipboard

Provides getters and setters for items of lists, starting at the beginning and the end.

Dart Lists have a first and a last getter and setter, so you can easily do stuff like this:

var theList = ['banana'];
theList.first = 'apple';
print(theList.last);

But why stop there? #

Wouldn't it be cool to also be able to call theList.second or theList.thirdLast?

Or even theList.eigth?

Wonder no more! By harnessing the power of extension methods, this package offers getters and setters for the first and last twenty items of a list!

0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Provides getters and setters for items of lists, starting at the beginning and the end.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on list_accessors