Files
fil/docs/snippets/dart/plugins/plugin_validator.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

807 B

import 'package:kreuzberg/kreuzberg.dart';

Future<void> main() async {
  // A Dart implementation of the `Validator` trait that gates on MIME type
  // cannot be plugged into the global validator registry.
  // `Kreuzberg.registerValidator(impl)` exists, but its
  // `createValidatorDartImpl` factory requires opaque `BoxFn*` closure
  // values whose constructors are not surfaced through
  // flutter_rust_bridge.
  //
  // Implement the validator in Rust and register it via `register_validator`
  // in a Rust shim crate.
}