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