provide static method

void provide(
  1. dynamic instance
)

Function provide stores instance of injectable object to map.

Implementation

static void provide(dynamic instance) =>
    _instance.putIfAbsent(instance.runtimeType.toString(), () => instance);