$allocate static method

Pointer<MpClassifierOptions> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Char> display_names_locale,
  3. required int max_results,
  4. required double score_threshold,
  5. required Pointer<Pointer<Char>> category_allowlist,
  6. required int category_allowlist_count,
  7. required Pointer<Pointer<Char>> category_denylist,
  8. 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;