File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ class OSCreateNotification extends JSONStringRepresentable {
172172
173173 // adds buttons
174174 if (this .buttons != null ) {
175- var btns = [] ;
175+ var btns = List < Map < String , dynamic >>. empty (growable : true ) ;
176176 this .buttons! .forEach ((btn) => btns.add (btn.mapRepresentation ()));
177177 json['buttons' ] = btns;
178178 }
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ class OSNotification extends JSONStringRepresentable {
248248 }
249249
250250 if (json.containsKey ('buttons' )) {
251- this .buttons = [] ;
251+ this .buttons = List < OSActionButton >. empty (growable : true ) ;
252252 var btns = json['buttons' ] as List <dynamic >;
253253 for (var btn in btns) {
254254 var serialized = btn.cast <String , dynamic >();
You can’t perform that action at this time.
0 commit comments