ExternalPathIosMac class
A class that provides methods to access directory paths and platform version information on iOS and macOS platforms.
This class acts as a facade for accessing the platform-specific implementation
through the ExternalPathIosMacPlatform
interface. It provides methods to retrieve
the paths of specific directories and the platform version by delegating these
calls to the current platform implementation instance.
Example usage:
final externalPath = ExternalPathIosMac();
final documentsPath = await externalPath.getDirectoryPath(directory: DirectoryType.downloads);
final macOsLibraryPath = await externalPath.getDirectoryPathMacOs(directory: MacDirectoryType.downloads);
final platformVersion = await externalPath.getPlatformVersion();
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
-
getDirectoryPath(
{required DirectoryType directory}) → Future< String?> - Retrieves the path for a specified directory on the iOS platform.
-
getDirectoryPathMacOs(
{required MacDirectoryType directory}) → Future< String?> - Retrieves the path for a specified directory on the macOS platform.
-
getPlatformVersion(
) → Future< String?> - Retrieves the platform version from the native side (iOS or macOS).
-
getRootInstallationPath(
) → Future< String?> - Retrieves the root installation path where applications are installed.
-
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