getInstance static method

Future<VKID> getInstance()

Provides an instance of this class.

Implementation

static Future<VKID> getInstance() async {
  if (_instance == null) {
    return _lock.synchronized(() async {
      _instance ??= VKID();
      return _instance!;
    });
  }
  return _instance!;
}