upsert static method

Future<void> upsert(
  1. New obj
)

Implementation

static Future<void> upsert(New obj) async {
  await _ready();

  String data = obj.toDataString();

  await _prefs.setString('NewModel', data);
}