usuful_functions 0.1.1+1 copy "usuful_functions: ^0.1.1+1" to clipboard
usuful_functions: ^0.1.1+1 copied to clipboard

A collections of usuful functions to make .

Usuful Functions (UF) #

A collection of usuful function for generic tedious tasks like flatting or cloning data. #

Features #

1. flat List

Usage #

To use the "flatList" you need to specify the type you are returning and pass as a parameter the list you need to flat. It will look something like this:

    final List<List<List<String>>> nestedList = [[["Apple", "Banana", "Watermelon"]]];


    // We specify the type otherwise it will return as a List<dynamic>
    final flattedList = UF.flatList<String>(nestedList);

    print(flattedList);
    

The output of that print should look like:

    ["Apple", "Banana", "Watermelon"]

Additional Information #

This library is still in development and under testing, more functions and further testing willhappen in the future.

0
likes
145
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

A collections of usuful functions to make .

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on usuful_functions