Classes and mixins can only implement other classes and mixins. Try specifying a class or mixin
pls remove this error.
Classes and mixins can only implement other classes and mixins. Try specifying a class or mixin, or remove the name from the list. in class auth_test.dart
class MockAuthProvider implements AuthProvider { AuthUser? _user; var _isInitialized = false; bool get isInitialized => _isInitialized; @override Future<AuthUser> createUser({ required String email, required String password, }) async { if (!isInitialized) throw NotInitializedException(); await Future.delayed(const Duration(seconds: 1)); return logIn( email: email, password: password, ); }
@override AuthUser? get currentUser => _user;
@override
Future
@override Future<AuthUser> logIn({ required String email, required String password, }) { if (!isInitialized) throw NotInitializedException(); if (email == '[email protected]') throw UserNotFoundAuthException(); if (password == '12345') throw WrongPasswordAuthExeption(); const user = AuthUser(isEmailVerified: false); _user = user; return Future.value(user); }
@override
Future
@override
Future
I am having this error as well. Do we know when this will be fixed/what the cause of the error is?