callAll function

void callAll(
  1. List<void Function()> functions
)

Calls given all functions, this function can be used to avoid introducing braces and makes code more compact.

Implementation

void callAll(List<void Function()> functions) {
  for (var f in functions) {
    f.call();
  }
}