signatureAndVersion property

  1. @override
SignatureAndVersion signatureAndVersion
override

Override in children to indicate the signature of this class (used to recognize when reading a file which persister to initialize) and which version is written. The version should be increased if for example new fields get persisted. In that case, the reader must contain compatibility code for reading older versions.

signatureFromType can be used to generate a standard signature from the supportedType, but read the caveats in its documentation.

Implementation

@override
SignatureAndVersion get signatureAndVersion {
  return SignatureAndVersion(signatureFromString('CGpsPoints'), 1);
}