truncate method
Cuts id's record in half, the way a crash mid-write would.
Implementation
void truncate(String id) {
final String? record = raw[id];
if (record != null) raw[id] = record.substring(0, record.length ~/ 2);
}
Cuts id's record in half, the way a crash mid-write would.
void truncate(String id) {
final String? record = raw[id];
if (record != null) raw[id] = record.substring(0, record.length ~/ 2);
}