SyncApiParams<R, P> constructor

const SyncApiParams<R, P>({
  1. required P data,
  2. required void onAsync(
    1. Either<BaseException, R> result
    ),
  3. void onSync(
    1. Either<BaseException, R> result
    )?,
  4. SyncApiRequestScope? scope,
})

Implementation

const SyncApiParams({
  required this.data,
  required this.onAsync,
  this.onSync,
  SyncApiRequestScope? scope,
}) : _scope = scope;