BackgroundUseCase<T, Params> constructor

BackgroundUseCase<T, Params>()

Create a new BackgroundUseCase.

Throws an assertion error on web platforms.

Implementation

BackgroundUseCase() {
  assert(
    !const bool.fromEnvironment('dart.library.js_util'),
    'BackgroundUseCase is not supported on web. '
    'Use UseCase with compute() for simple cases, or consider web workers.',
  );
}