flutter_extended_collection

Last updated:

0 purchases

flutter_extended_collection Image
flutter_extended_collection Images
Add to Cart

Description:

flutter extended collection

flutter_extended_collection #
A flutter package provides collection extentions, like LRU cache.
Getting Started #
1. Add dependency
dependencies:

flutter_extended_collection: ^0.0.2
copied to clipboard
2. How to use


LruCache:
LruCache lruCache = LruCache<int, String>(capacity: 3);
copied to clipboard





operate
Result




lruCache.put(0, "0");(same as lruCache[0] = "0";)
{0: 0}


lruCache.put(1, "1");
{0: 0, 1: 1}


lruCache.put(2, "2");
{0: 0, 1: 1, 2: 2}


lruCache.put(1, "1");
{0: 0, 2: 2, 1: 1}


lruCache.put(3, "3");
{2: 2, 1: 1, 3: 3}


lruCache.clear();
{}

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.