createModel method

  1. @protected
  2. @visibleForOverriding
SharedStorageQueueModel createModel(
  1. void onError(
    1. String
    )
)

Creates the model mirroring this module class.

Implementation

@protected
@visibleForOverriding
SharedStorageQueueModel createModel(void Function(String) onError) =>
    SharedStorageQueueModel(
      numChannels: numChannels,
      entryCount: entryCount,
      indexWidth: indexWidth,
      channelWidth: pushChannel.width,
      dataWidth: pushData.width,
      onError: onError,
    );