list_extension 0.0.1 copy "list_extension: ^0.0.1" to clipboard
list_extension: ^0.0.1 copied to clipboard

Custom methods and propeties for List added via Dart extension.

list_extension #

Custom methods and propeties for List added via Dart extension.

Install #

Added in project's pubspec:


dependencies:
  list_extension: any

...

Usage #

indices: Return a list with all indices.

final list = ['hello', 'test'];

for(var index in list.indices){
  print("Index: $index | Value: ${list[index]}");
}

copy: Create a new instance of list with the same items.

final list = ['hello', 'test'];
final copy = list.copy();

print(list.hashCode == copy.hashCode); // false

lastIndex: The number of last index in this list.

final list = ['hello', 'test'];

print(list.lastIndex); // 1
0
likes
150
pub points
0%
popularity

Publisher

unverified uploader

Custom methods and propeties for List added via Dart extension.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on list_extension