flushInstance static method

void flushInstance()

Flush existed SuperuserInterface instance.

Implementation

static void flushInstance() {
  if (_instance != null) {
    if (_instance is SuperuserPlatform) {
      (_instance as SuperuserPlatform).close();
    }

    _instance = null;
  }
}