FileService class

This class provides functions to update file content, append to files, and remove trailing commas.

Constructors

FileService.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createFile({required String filePath, String content = ''}) Future<void>
removeTrailingComma(String? input) String?
Removes the trailing comma from the given input string, if present.
updateFileContent({required String oldString, required String newString, required String filePath}) Future<void>
Updates the contents of the file at the given filePath by replacing all occurrences of oldString with newString.