maybeWhen<TResult extends Object?> method Null safety

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

    Implementation

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