AbstractPlatformFileEditor class abstract
AbstractPlatformFileEditor is an abstract class that provides a blueprint for platform-specific file editors. It defines the common methods that all platform file editors should implement. Attributes:
- platform: Specifies the platform for which the file editor is defined.
Constructors
- AbstractPlatformFileEditor({required RenamePlatform platform})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- platform → RenamePlatform
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAppName(
) → Future< String?> - Fetches the name of the application. Returns: Future<String?>, the name of the application.
-
getBundleId(
) → Future< String?> - Fetches the Bundle ID of the application. Returns: Future<String?>, the Bundle ID of the application.
-
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:
-
setAppName(
{required String appName}) → Future< String?> -
Changes the name of the application to the provided
appName
. Parameters: -
setBundleId(
{required String bundleId}) → Future< String?> -
Changes the Bundle ID of the application to the provided
bundleId
. Parameters: -
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 specifiedfilePath
. Parameters:
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertPath(
List< String> paths) → String - Converts a list of path segments into a platform-specific file path. Parameters: