BackupService class
Service for managing pubspec.yaml backups
Constructors
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
-
backupExists(
) → bool - Check if a backup file exists
-
createBackup(
) → Future< bool> - Create a backup of the current pubspec.yaml file Returns true if backup was created successfully
-
createTimestampedBackup(
) → Future< String?> - Create a timestamped backup (for multiple backups)
-
deleteBackup(
) → Future< bool> - Delete the backup file Returns true if deletion was successful
-
getBackupInfo(
) → Future< BackupInfo?> - Get backup file information
-
listBackups(
) → List< String> - List all backup files in the current directory
-
restoreFromBackup(
) → Future< bool> - Restore pubspec.yaml from backup Returns true if restore was successful