I'm developing flutter application based on clean architecture. And I have…
- User
I'm developing flutter application based on clean architecture. And I have authentication service in domain layer. However I'm trying to add another authentication service which could be similar to existing authentication service, but have another abstract methods. In this case, how can I architect the authentication service for both?
- Assistant
One way to handle this situation would be to create an interface that defines the common behavior of both authentication services, and then have each service implement the interface.