saveFile method

void saveFile()

Save the current content.

Note: File system operations are not supported on web. Use text getter to get the content and handle saving in your application.

Implementation

void saveFile() {
  if (openedFile == null) {
    throw FlutterError(
      "No file found.\nPlease open a file by providing a valid filePath to the CodeForgeWeb widget",
    );
  }
  throw UnsupportedError(
    "File system operations are not supported on web. Use the 'text' getter to get content.",
  );
}