loginWithCredentials method

  1. @override
Future<Either<Failure, AuthenticationData>> loginWithCredentials(
  1. String? username,
  2. String? password
)
override

Implementation

@override
loginWithCredentials(String? username, String? password) {
  return super.noSuchMethod(
    Invocation.method(
      #loginWithCredentials,
      [username, password],
    ),
    returnValue: Future<Either<Failure, AuthenticationData>>.value(
      right<Failure, AuthenticationData>(
        AuthenticationDataModel(
          token:
              "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjE1MTYyMzkwMjJ9.4Adcj3UFYzPUVaVF43FmMab6RlaQD8A9V8wFzzht-KQ",
          id: "id",
        ),
      ),
    ),
    returnValueForMissingStub: Future<Either<Failure, AuthenticationData>>.value(
      right<Failure, AuthenticationData>(
        AuthenticationDataModel(
          token:
              "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjE1MTYyMzkwMjJ9.4Adcj3UFYzPUVaVF43FmMab6RlaQD8A9V8wFzzht-KQ",
          id: "id",
        ),
      ),
    ),
  );
}