void update(String? text, TipStyle? style) { if (text != null) this.text = text; if (style != null) this.tipStyle = style; updateState(); }