text method

TextStyle text(
  1. TextStyle own,
  2. Color colour
)

The words' style: the look's own, with a layer's text style merged over it and colour last.

Implementation

TextStyle text(TextStyle own, Color colour) {
  final layered = textStyle;
  return (layered == null ? own : own.merge(layered)).copyWith(color: colour);
}