mapped_list 1.0.0 copy "mapped_list: ^1.0.0" to clipboard
mapped_list: ^1.0.0 copied to clipboard

Use Map<int, T> instead of List<T> for json patching efficiency, an extension for maps to use list methods on them when the key is an int (index)

Use Map<int, T> instead of List

Usage #

import 'package:mapped_list/mapped_list.dart';  

Map<int, String> mappedList = {};
mappedList.ladd('a');
mappedList.ladd('b');
mappedList.ladd('c');
mappedList.lremove('b');
mappedList.lremoveAt(0);
mappedList.linsert(0, 'd');

print(mappedList); // {0: d, 1: c}
print(mappedList.llist()); // [d,c]
0
likes
140
pub points
2%
popularity

Publisher

verified publisherarcane.art

Use Map<int, T> instead of List<T> for json patching efficiency, an extension for maps to use list methods on them when the key is an int (index)

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

More

Packages that depend on mapped_list