TbCommandDeleteFile constructor

TbCommandDeleteFile({
  1. String? filePath,
  2. bool fromFlash = true,
})

Implementation

TbCommandDeleteFile({String? filePath, bool fromFlash = true}) {
  if (filePath == null) {
    if (fromFlash) {
      outCommand = "KILL F, \"* \"\r\n";
    }
    else {
      outCommand = "KILL \"* \"\r\n";
    }

  }
  else {
    if (fromFlash) {
      outCommand =
      "KILL F, \"${ITbCommand.pathToBrotherFileName(filePath)}\"\r\n";
    }
    else {
      outCommand =
      "KILL \"${ITbCommand.pathToBrotherFileName(filePath)}\"\r\n";
    }
  }

}