dependency_injection library
Functions
-
configureAuthenticationBasicInjection(
AppEnvironment environment, BasicAuthenticationConfig config, {AuthenticationService customService(IHttpClient client)?}) → Future< void> -
This functions register:
SharedPreferences
if not registered previouslyIHttpClient
if not registered previously BasicAuthenticationConfig if not registered previously AuthenticationService with AuthenticationServiceImpl implementation, if passed test environment, it will provide a AuthenticationServiceMock