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 {
172
172
173
173
// adds buttons
174
174
if (this .buttons != null ) {
175
- var btns = [] ;
175
+ var btns = List < Map < String , dynamic >>. empty (growable : true ) ;
176
176
this .buttons! .forEach ((btn) => btns.add (btn.mapRepresentation ()));
177
177
json['buttons' ] = btns;
178
178
}
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ class OSNotification extends JSONStringRepresentable {
248
248
}
249
249
250
250
if (json.containsKey ('buttons' )) {
251
- this .buttons = [] ;
251
+ this .buttons = List < OSActionButton >. empty (growable : true ) ;
252
252
var btns = json['buttons' ] as List <dynamic >;
253
253
for (var btn in btns) {
254
254
var serialized = btn.cast <String , dynamic >();
You can’t perform that action at this time.
0 commit comments