forEachList method

void forEachList(
  1. void callback(
    1. int,
    2. JSON
    )
)

循环读取List中的所有值

Implementation

void forEachList(void Function(int, JSON) callback) {
  final list = listValue;
  for (var i = 0; i < list.length; i++) {
    callback(i, JSON(list[i]));
  }
}