Persistence.get constructor Null safety

Persistence.get()

Factory that returns the singleton instance.

Implementation

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