RarPlatform class abstract
The interface that implementations of rar must implement.
Platform implementations should extend this class rather than implement it
as rar does not consider newly added methods to be breaking changes.
Extending this class (using extends) ensures that the subclass will get
the default implementation, while platform implementations that implements
this interface will be broken by newly added RarPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- RarPlatform
Constructors
- RarPlatform()
- Constructs a RarPlatform.
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
-
createRarArchive(
{required String outputPath, required List< String> sourcePaths, String? password, int compressionLevel = 5}) → Future<Map< String, dynamic> > - Create a RAR archive from files or directories.
-
extractRarFile(
{required String rarFilePath, required String destinationPath, String? password}) → Future< Map< String, dynamic> > - Extract a RAR file to a destination directory.
-
listRarContents(
{required String rarFilePath, String? password}) → Future< Map< String, dynamic> > - List contents of a RAR file.
-
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 Properties
- instance ↔ RarPlatform
-
The default instance of RarPlatform to use.
getter/setter pair