$allocate static method
Pointer<MpClassifierOptions>
$allocate(
- Allocator $allocator, {
- required Pointer<
Char> display_names_locale, - required int max_results,
- required double score_threshold,
- required Pointer<
Pointer< category_allowlist,Char> > - required int category_allowlist_count,
- required Pointer<
Pointer< category_denylist,Char> > - required int category_denylist_count,
Implementation
static ffi.Pointer<MpClassifierOptions> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<ffi.Char> display_names_locale,
required int max_results,
required double score_threshold,
required ffi.Pointer<ffi.Pointer<ffi.Char>> category_allowlist,
required int category_allowlist_count,
required ffi.Pointer<ffi.Pointer<ffi.Char>> category_denylist,
required int category_denylist_count,
}) => $allocator<MpClassifierOptions>()
..ref.display_names_locale = display_names_locale
..ref.max_results = max_results
..ref.score_threshold = score_threshold
..ref.category_allowlist = category_allowlist
..ref.category_allowlist_count = category_allowlist_count
..ref.category_denylist = category_denylist
..ref.category_denylist_count = category_denylist_count;