Handles commands inside a dedicated native-task isolate.
typedef NativeTaskWorkerHandler = FutureOr<Object?> Function(Object? command);