style property

TextStyle get style

The style in effect: the nearest TextStyleNode's, extended by this node's own.

Implementation

TextStyle get style => _resolved ??=
    DEFAULT_STYLE //
        .merge(_target.value?.style)
        .merge(_style);
set style (TextStyle? style)

Sets this node's own style. Null falls back to the inherited style alone.

Implementation

set style(TextStyle? style) {
  if (_style == style) return;
  _style = style;
  _resolved = null;
  _dirty = true;
}