initializeDefaultPersisters function Null safety

void initializeDefaultPersisters()

Function that creates and registers the default persisters for the built-in collection types. Call it from the calling code's main() function for example, unless you want to do your own persistence registration from scratch.

Implementation

void initializeDefaultPersisters() {
  Persistence.get()
    ..register(PGpcCompactGpsPoint())
    ..register(PGpcCompactGpsMeasurement());
}