fileAttributesToWriteToFile method

NSDictionary? fileAttributesToWriteToFile(
  1. NSString fullDocumentPath, {
  2. required NSString ofType,
  3. required NSSaveOperationType saveOperation,
})

fileAttributesToWriteToFile:ofType:saveOperation:

Implementation

objc.NSDictionary? fileAttributesToWriteToFile(
  objc.NSString fullDocumentPath, {
  required objc.NSString ofType,
  required NSSaveOperationType saveOperation,
}) {
  objc.checkOsVersionInternal(
    'NSDocument.fileAttributesToWriteToFile:ofType:saveOperation:',
    iOS: (true, null),
    macOS: (false, (10, 1, 0)),
  );
  final _ret = _objc_msgSend_auhece(
    this.ref.pointer,
    _sel_fileAttributesToWriteToFile_ofType_saveOperation_,
    fullDocumentPath.ref.pointer,
    ofType.ref.pointer,
    saveOperation.value,
  );
  return _ret.address == 0
      ? null
      : objc.NSDictionary.castFromPointer(_ret, retain: true, release: true);
}