TextDecoration.combine constructor

TextDecoration.combine(List<TextDecoration> decorations)

Creates a decoration that paints the union of all the given decorations.

Implementation

factory TextDecoration.combine(List<TextDecoration> decorations) {
  int mask = 0;
  for (TextDecoration decoration in decorations)
    mask |= decoration._mask;
  return new TextDecoration._(mask);
}