fromList static method

List<NotificationButtonData> fromList(
  1. dynamic buttons
)

Implementation

static List<NotificationButtonData> fromList(dynamic buttons) {
  List<dynamic> list = buttons;
  List<NotificationButtonData> buttonDataList = [];
  for (var i in list) {
    buttonDataList.add(NotificationButtonData.create(i['title'], i['icon']));
  }
  return buttonDataList;
}