persistenceKey property

String persistenceKey

The key used internally by momentum for persistence with this controller. You can also use this to clear the data or even override the persisted json value (use with caution).

Implementation

String get persistenceKey {
  if (_persistenceKey == null) {
    _persistenceKey = '$Momentum[$this<$M>]'.replaceAll('\'', '');
  }
  return _persistenceKey!;
}