multiplyAllBy method

Iterable<T> multiplyAllBy(
  1. T number
)

Multiply number to all items in the collection

Implementation

Iterable<T> multiplyAllBy(T number) {
  return map((element) => element * number as T);
}