static Future<void> register(Provider provider) async { String id = provider.runtimeType.toString(); _providers[id] = provider; await _providers[id].onRegister(); }