register static method

Future<void> register(
  1. Provider provider
)

Implementation

static Future<void> register(Provider provider) async {
  String id = provider.runtimeType.toString();

  _providers[id] = provider;

  await _providers[id].onRegister();
}