copyToNative method

Pointer<T> copyToNative()

Copies these task options into native memory. Any fields of type InnerTaskOptions should have their assignToStruct method called.

It is the job of copyToNative to both create and cache the pointer to native memory. This means that copyToNative can be called more than once without causing problems other than redundant work.

Implementation

Pointer<T> copyToNative() {
  throw UnimplementedError('Must implement `$runtimeType.copyToNative`');
}