Span constructor

const Span(
  1. String text, [
  2. Style? style
])

text in style, unset by default or where null, so that a style that depends goes in as it is: Span(text, overdue ? theme.warning : null).

Implementation

const Span(this.text, [Style? style])
  : style = style ?? const Style(),
    gradient = null,
    onTap = null;