instance property

Returns the singleton instance of SwipeLockProvider. Throws an error if the instance is not initialized.

Implementation

static SwipeLockProvider get instance {
  if (_instance != null) {
    return _instance!;
  } else {
    throw UnimplementedError("SwipeLockProvider is not initialized yet");
  }
}