Persistence.get constructor

Persistence.get()

Factory that returns the singleton instance.

Implementation

factory Persistence.get() {
  _singletonInstance ??= Persistence._internal();
  return _singletonInstance!;
}