findValue method

IConfigEntry findValue(
  1. IStatus status,
  2. String name,
  3. String value
)

Implementation

IConfigEntry findValue(IStatus status, String name, String value) {
  final nameUtf = name.toNativeUtf8(allocator: mem);
  try {
    final valueUtf = value.toNativeUtf8(allocator: mem);
    try {
      final res = _findValue(self, status.self, nameUtf, valueUtf);
      status.checkStatus();
      return IConfigEntry(res);
    } finally {
      mem.free(valueUtf);
    }
  } finally {
    mem.free(nameUtf);
  }
}