exportedBinds method

  1. @override
void exportedBinds(
  1. Injector i
)
override

Implementation

@override
void exportedBinds(Injector i) => i
  ..add<ApiService>(MoodleApiService.new)
  ..add<AuthService>(MoodleAuthService.new)
  ..add<UserDatasource>(MoodleUserDatasource.new)
  ..addRepository<AuthRepository>(AuthRepository.new)
  ..addRepository<UserRepository>(UserRepository.new)
  ..addSerde<Token>(fromJson: Token.fromJson, toJson: (t) => t.toJson())
  ..addSerde<User>(fromJson: User.fromJson, toJson: (u) => u.toJson());