getKeys method Null safety

List<String> getKeys()

Implementation

List<String> getKeys() {
  final constructor =
      _dll_handle.lookupFunction<_Context_getKeys_c, _Context_getKeys_dart>(_context_namespace + 'getKeys');
  final exception = _getException();

  final length = this.len();

  var p_value_array = constructor(this._impl, length, exception);

  tdvCheckException(exception, _dll_handle);

  List<String> res = [];

  for (int i = 0; i < length; i++) {
    res.add(p_value_array[i].toDartString());
  }

  return res;
}