truncate method
Implementation
Future<void> truncate(int newLength, {CancelToken? cancel}) async {
_checkWritable();
cancel?.throwIfCancelled(path: path);
return _track(_guard('truncate', () => _backend.truncate(newLength)));
}
Future<void> truncate(int newLength, {CancelToken? cancel}) async {
_checkWritable();
cancel?.throwIfCancelled(path: path);
return _track(_guard('truncate', () => _backend.truncate(newLength)));
}