mergeAll static method

InputDecoration mergeAll(
  1. List<InputDecoration?> list
)

Merges a list of InputDecoration instances from left to right.

Later decorations in the list take priority over earlier ones.

Implementation

static InputDecoration mergeAll(List<InputDecoration?> list) {
  return list.fold<InputDecoration>(
    const InputDecoration(),
    (acc, d) => acc.mergeWith(d),
  );
}