reset method

bool reset(
  1. {bool clearFactory = true,
  2. bool clearRouteBindings = true}
)

Clears all registered instances (and/or tags). Even the persistent ones.

  • clearFactory clears the callbacks registered by Get.lazyPut()
  • clearRouteBindings clears Instances associated with Routes when using GetMaterialApp.

Implementation

bool reset({bool clearFactory = true, bool clearRouteBindings = true}) =>
    GetInstance().reset(
        clearFactory: clearFactory, clearRouteBindings: clearRouteBindings);