debugSetInstance static method

  1. @visibleForTesting
void debugSetInstance(
  1. HatangChat? instance
)

Replaces the instance (host tests).

Implementation

@visibleForTesting
static void debugSetInstance(HatangChat? instance) {
  _instance?.dispose();
  _instance = instance;
}