30秒学会 Dart 片段 – mapNumRange
Maps a number from one range to another range. Returns n mapped between outMin–outMax from inM...
Maps a number from one range to another range. Returns n mapped between outMin–outMax from inM...
Converts a string to camelcase. Use String.replaceAllMapped() to break the string into words and cap...
Groups the elements of a list based on the given function. Use Iterable.map() to map each element to...
Check if all elements in a list are equal. Use Iterable.every() to check if all the elements of the ...
Converts an angle from radians to degrees. Use pi and the radian to degree formula to convert the an...
Returns a list of elements that exist in both lists, after applying the provided function to each el...
Returns the maximum value of a list, after mapping each element to a number using the provided funct...
Removes elements from the start of a list until the passed function returns true and returns the rem...
Filters out the non-unique values in a list. Use Iterable.where() in combination with List.indexOf()...
Returns all the elements of a list except the first one. Check if lst has the appropriate length, us...