1. DomName('FileWriter.truncate')
  2. DocsEditable()
void truncate(int size)

Source

@DomName('FileWriter.truncate')
@DocsEditable()
void truncate(int size) => _blink.BlinkFileWriter.instance.truncate_Callback_1_(this, size);