appendData method

Future<LoadDataResult> appendData(
  1. List<int> data, {
  2. LoadDataOptions? options,
})

Parse CSV or JSON bytes and append them after the current grid rows.

Implementation

Future<LoadDataResult> appendData(
  List<int> data, {
  LoadDataOptions? options,
}) async {
  final request = AppendDataRequest()
    ..gridId = _gridId
    ..data = data;
  if (options != null) {
    request.options = options;
  }
  final result = await VolvoxGridService.AppendData(request);
  if (result.status != LoadDataStatus.LOAD_FAILED) {
    await _applyDefaultEditorsForInferredColumns(result.inferredColumns);
  }
  notifyListeners();
  return result;
}