style property

TextStyle get style

Implementation

TextStyle get style => _style;
set style (TextStyle value)

Implementation

set style(TextStyle value) {
  if (value == _style) return;
  final layout =
      value.copyWith(color: const Color(0xFF000000)) !=
      _style.copyWith(color: const Color(0xFF000000));
  _style = value;
  _needsText = true;
  if (layout) {
    markNeedsLayout();
  } else {
    markNeedsPaint();
  }
}