Skip to content

AlexanderMendivil/UF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A collection of usuful functions for Dart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages