30秒学会 Dart 片段 – toSnakeCase
Converts a string to snake case. Use String.replaceAllMapped() to break the string into words and St...
Converts a string to snake case. Use String.replaceAllMapped() to break the string into words and St...
Returns a map with the unique values of a list as keys and their frequencies as the values. Use Iter...
Filters out the unique values in a list. Use Iterable.where() in combination with List.indexOf() and...
Returns the sum of a list, after mapping each element to a number using the provided function. Use I...
Returns the maximum value in a list of numbers. Use Iterable.reduce() in combination with max() to f...
Returns a new list containing the elements between start and end. Negative values can be used, indic...
Returns the difference between two lists. Use Iterable.toSet() to get the unique values in b. Use It...
Converts a string to kebab case. Use String.replaceAllMapped() to break the string into words and St...
Converts an integer to a list of digits. Use string interpolation to convert the integer to a string...
Returns every element that exists in any of the two lists once. Use the plus operator (+) to concate...