save method Null safety

void save()

Implementation

void save() {
  Preferences.setStringSecurity(
    '${ApConstants.packageName}'
    '.announcement_login_data',
    toRawJson(),
  );
}