TextDecoration.combine constructor
- 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 (final TextDecoration decoration in decorations) {
mask |= decoration._mask;
}
return TextDecoration._(mask);
}