string static method
Creates a persistent string state container.
Implementation
static PersistroLightro<String> string(
String key, {
String initial = '',
bool autoSave = true,
}) {
return PersistroLightro<String>(
key: key,
initial: initial,
decoder: (json) => json,
encoder: (value) => value,
autoSave: autoSave,
);
}