@@ -234,7 +234,7 @@ Node a({
234234 if (rel != null ) 'rel' : rel,
235235 if (target != null ) 'target' : target,
236236 if (title != null ) 'title' : title,
237- if (attributes != null ) ...attributes,
237+ ...? attributes,
238238 },
239239 children: children,
240240 child: child,
@@ -369,7 +369,7 @@ Node form({
369369 attributes: < String , String > {
370370 if (action != null ) 'action' : action,
371371 if (method != null ) 'method' : method,
372- if (attributes != null ) ...attributes,
372+ ...? attributes,
373373 },
374374 children: children,
375375 child: child,
@@ -512,7 +512,7 @@ Node img({
512512 if (title != null ) 'title' : title,
513513 if (lazy) 'loading' : 'lazy' ,
514514 if (image.role != null ) 'role' : image.role! ,
515- if (attributes != null ) ...attributes,
515+ ...? attributes,
516516 },
517517 children: children,
518518 );
@@ -546,7 +546,7 @@ Node input({
546546 if (value != null ) 'value' : value,
547547 if (autofocus) 'autofocus' : 'autofocus' ,
548548 if (disabled) 'disabled' : 'disabled' ,
549- if (attributes != null ) ...attributes,
549+ ...? attributes,
550550 },
551551 children: children,
552552 child: child,
@@ -616,7 +616,7 @@ Node link({
616616 if (title != null ) 'title' : title,
617617 if (href != null ) 'href' : href,
618618 if (as != null ) 'as' : as ,
619- if (attributes != null ) ...attributes,
619+ ...? attributes,
620620 },
621621 children: children,
622622 child: child,
@@ -651,7 +651,7 @@ Node meta({
651651 if (content != null ) 'content' : content,
652652 if (rel != null ) 'rel' : rel,
653653 if (href != null ) 'href' : href,
654- if (attributes != null ) ...attributes,
654+ ...? attributes,
655655 },
656656 children: children,
657657 child: child,
@@ -697,7 +697,7 @@ Node option({
697697 if (value != null ) 'value' : value,
698698 if (disabled) 'disabled' : 'disabled' ,
699699 if (selected) 'selected' : 'selected' ,
700- if (attributes != null ) ...attributes,
700+ ...? attributes,
701701 },
702702 children: children,
703703 child: child,
@@ -767,7 +767,7 @@ Node script({
767767 if (async ) 'async' : 'async' ,
768768 if (defer) 'defer' : 'defer' ,
769769 if (onload != null ) 'onload' : onload,
770- if (attributes != null ) ...attributes,
770+ ...? attributes,
771771 },
772772 children: children,
773773 child: child,
@@ -981,7 +981,7 @@ Map<String, String>? _mergeAttributes(
981981 return < String , String > {
982982 if (id != null ) 'id' : id,
983983 if (classes != null && classes.isNotEmpty) 'class' : classes.join (' ' ),
984- if (attributes != null ) ...attributes,
984+ ...? attributes,
985985 };
986986}
987987
0 commit comments