textStyle property

TextStyle get textStyle

The text style to be used for text drawables from value.settings.text directly.

Implementation

TextStyle get textStyle => value.settings.text.textStyle;
set textStyle (TextStyle textStyle)

The text style to be used for text drawables from value.settings.text directly.

Setting this will notify all the listeners of this PainterController that they need to update (it calls notifyListeners). For this reason, this value should only be set between frames, e.g. in response to user actions, not during the build, layout, or paint phases.

Implementation

set textStyle(TextStyle textStyle) => value = value.copyWith(
    settings: value.settings
        .copyWith(text: value.settings.text.copyWith(textStyle: textStyle)));