Module function

Module function 

Source
Expand description

Functionality for calling Dart closures from Rust.

Dart DL API doesn’t allow calling Dart closures directly. So Dart registers a static function that accepts and invokes the provided Dart closures.

Dart side must register these function during the FFI initialization phase: after Dart DL API is initialized and before any other exported Rust function is called.

Structs§

Function
Dart closure that can be called from Rust.