getInstance static method

Future<NyCache> getInstance()

Implementation

static Future<NyCache> getInstance() async {
  if (_instance == null) {
    _instance = NyCache._();
    await _instance!._init();
  }
  return _instance!;
}