@@ -92,10 +92,10 @@ class ZKText extends ZKNode {
9292 ///
9393 ////////////////////////////////////////////////////////////
9494 void setStyle (
95- {bool inherit: false ,
96- Color color: Colors .blue,
95+ {bool inherit = false ,
96+ Color color = Colors .blue,
9797 Color ? backgroundColor,
98- double fontSize: 16.0 ,
98+ double fontSize = 16.0 ,
9999 FontWeight ? fontWeight,
100100 FontStyle ? fontStyle,
101101 double ? letterSpacing,
@@ -110,13 +110,13 @@ class ZKText extends ZKNode {
110110 String ? fontFamily,
111111
112112 /// text pos style
113- TextAlign textAlign: TextAlign .center,
114- TextDirection textDirection: TextDirection .ltr,
115- double textScaleFactor: 1.0 ,
113+ TextAlign textAlign = TextAlign .center,
114+ TextDirection textDirection = TextDirection .ltr,
115+ double textScaleFactor = 1.0 ,
116116 int ? maxLines,
117117 String ? ellipsis,
118118 StrutStyle ? strutStyle,
119- TextWidthBasis textWidthBasis: TextWidthBasis .parent}) {
119+ TextWidthBasis textWidthBasis = TextWidthBasis .parent}) {
120120 _style = _style? .merge (TextStyle (
121121 inherit: inherit,
122122 color: color,
@@ -146,13 +146,13 @@ class ZKText extends ZKNode {
146146 }
147147
148148 void setPainterStyle (
149- {TextAlign textAlign: TextAlign .center,
150- TextDirection textDirection: TextDirection .ltr,
151- double textScaleFactor: 1.0 ,
149+ {TextAlign textAlign = TextAlign .center,
150+ TextDirection textDirection = TextDirection .ltr,
151+ double textScaleFactor = 1.0 ,
152152 int ? maxLines,
153153 String ? ellipsis,
154154 StrutStyle ? strutStyle,
155- TextWidthBasis textWidthBasis: TextWidthBasis .parent}) {
155+ TextWidthBasis textWidthBasis = TextWidthBasis .parent}) {
156156 _painter? .textAlign = textAlign;
157157 _painter? .textDirection = textDirection;
158158 _painter? .textScaleFactor = textScaleFactor;
0 commit comments