currentRow method

List currentRow([
  1. bool useBigInt = false
])

Reads the current from the underlying js api

Implementation

List<dynamic> currentRow([bool useBigInt = false]) {
  if (useBigInt) {
    final result = _obj.get(null, _SqlJsStatementGetOptions(useBigInt: true));
    for (var i = 0; i < result.length; i++) {
      if (_isBigInt(result[i])) {
        final toString = callMethod<String>(result[i]!, 'toString', const []);
        result[i] = BigInt.parse(toString);
      }
    }
    return result;
  } else {
    return _obj.get(null, null);
  }
}