getInstance static method

LocationRepository? getInstance()

Implementation

static LocationRepository? getInstance() {
  if (_singleton == null) {
    throw SpinachUnInitializedException(
        "LocationRepository  is not properly initialized");
  }
  return _singleton;
}