WindowsPlatformFileEditor class

WindowsPlatformFileEditor is a class responsible for editing Windows platform files. It extends the AbstractPlatformFileEditor class.

Attributes:

  • windowsAppPath: Path to the Windows main.cpp file.
  • windowsAppRCPath: Path to the Windows Runner.rc file.
Inheritance

Constructors

WindowsPlatformFileEditor({RenamePlatform platform = RenamePlatform.windows})
Creates an instance of WindowsPlatformFileEditor.

Properties

hashCode int
The hash code for this object.
no setterinherited
platform RenamePlatform
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
windowsAppPath String
getter/setter pair
windowsAppRCPath String
getter/setter pair

Methods

getAppName() Future<String?>
Fetches the app name from the Windows main.cpp file.
override
getBundleId() Future<String?>
Fetches the bundle ID from the Windows Runner.rc file.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFileAsLineByline({required String filePath}) Future<List<String?>>
Reads a file line by line. Parameters:
inherited
setAppName({required String appName}) Future<String?>
Sets the app name in the Windows main.cpp file.
override
setBundleId({required String bundleId}) Future<String?>
Sets the bundle ID in the Windows Runner.rc file.
override
toString() String
A string representation of this object.
inherited
writeFile({required String filePath, required String content}) Future<File>
Writes the provided content to a file at the specified filePath. Parameters:
inherited

Operators

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