withSchema method
Implementation
SubtreePolicies withSchema(String schema) {
final nativeSchema = schema.toNativeUtf8();
try {
final policies = DartApi.native.coeusSubtreePolicies
.withSchema(_ffi, nativeSchema)
.extract((res) => res.asPointer<Void>());
return SubtreePolicies(policies, true);
} finally {
calloc.free(nativeSchema);
}
}