when<TResult extends Object?> method Null safety

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

Implementation

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