driverInfoList method

List<Info> driverInfoList()

Gets a list of information for all of the available drivers.

Implementation

List<Info> driverInfoList() {
  final res = <Info>[];
  final count = calloc<Int32>();
  final pointer = _driverInfoList(count);

  for (var i = 0; i < count.value; i++) {
    res.add(Info._(pointer.elementAt(i).value.ref));
  }

  calloc.free(count);

  return res;
}