Last updated:
0 purchases
array playground
array_playground #
Useful extensions for Lists
Hecho en 🇵🇷 por Radamés J. Valentín Reyes
Import #
import 'package:array_playground/array_playground.dart';
copied to clipboard
AsyncRemoveWhere #
An async function to remove all items where the function's criteria isn't met.
List<int> dataArray = [15,18,11,25,63];
print("Original array:");
print(dataArray);
await dataArray.asyncRemoveWhere((a)async{
return (15 < a && a <= 25);
});
print("Resulting array:");
print(dataArray);
copied to clipboard
Chunkify array #
List<int> dataArray = [15,18,11,25,63];
List<List> chunkifiedArray = dataArray.chunkify(2);
print(chunkifiedArray);//Output [[15, 18], [11, 25], [63]]
copied to clipboard
Contribute/donate by tapping on the Pay Pal logo/image #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.