PreviewCallback constructor

PreviewCallback(
  1. DataCallback onPreviewFrame
)

Construct a PreviewCallback.

Implementation

PreviewCallback(this.onPreviewFrame) {
  ChannelRegistrar.instance.implementations.channelDataCallback.$$create(
    onPreviewFrame,
    $owner: false,
  );
  _channel.$create$(this, $owner: true, onPreviewFrame: onPreviewFrame);
}