styled method

Text styled(
  1. TextStyle style, {
  2. bool merge = false,
})

Applies the provided style to this Text.

If merge is set to true, the provided style will be merged with the existing style.

Implementation

Text styled(TextStyle style, {bool merge = false}) => copyWith(style: merge ? style.merge(this.style) : style);