computeFunction property

ComputeCallback<TInput, TOutput> computeFunction
final

The top-level/static function applied to each event on a background isolate. A closure capturing state cannot be sent across the isolate boundary and will fail at compute() time — this is why the type is ComputeCallback, not an arbitrary lambda.

Implementation

// ignore: prefer_correct_callback_field_name -- pure per-event transform, not a UI event handler, so the `on` prefix would mislead
final ComputeCallback<TInput, TOutput> computeFunction;