getInstance static method

Nudge getInstance()

Retrieves the current instance of Nudge. Throws an exception if the instance is not initialized.

Implementation

static Nudge getInstance() {
  if (_instance == null) {
    throw Exception('Nudge instance has not been initialized yet.');
  }
  return _instance!;
}