DataTransferItem add(data_OR_file, [ String type ])

Source

DataTransferItem add(data_OR_file, [String type]) {
  if ((type is String) && (data_OR_file is String)) {
    return _blink.BlinkDataTransferItemList.instance.add_Callback_2_(this, data_OR_file, type);
  }
  if ((data_OR_file is File || data_OR_file == null) && type == null) {
    return _blink.BlinkDataTransferItemList.instance.add_Callback_1_(this, data_OR_file);
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}