when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult success(
    1. ApklisModel result
    ),
  2. required TResult failure(
    1. ApklisErrorModel error
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(ApklisModel result) success,
  required TResult Function(ApklisErrorModel error) failure,
}) =>
    throw _privateConstructorUsedError;