stubLogoutSuccess method

dynamic stubLogoutSuccess([
  1. Either<Failure, Unit>? response
])

Implementation

stubLogoutSuccess([Either<Failure, Unit>? response]) {
  when(logout()).thenAnswer(
    (realInvocation) async => response ?? right<Failure, Unit>(unit),
  );
}