register method

Registers this source with native code. The source data will be kept alive until handle is disposed.

Implementation

FutureOr<DataProviderHandle> register() {
  return DataProviderManager.instance.registerDataProvider(this);
}