sendable top-level constant

SendableAnnotation const sendable

Marks a parameter whose value must be sendable through SendPort. Function arguments must be a top-level function or a static method reference — closures and instance-method tear-offs are rejected because Dart's isolate runtime cannot copy them.

Implementation

const sendable = SendableAnnotation();