PlatformUtils class
Platform-specific utilities.
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
-
getCocoaPodsCachePath(
) → String? - Gets the CocoaPods cache directory (macOS only).
-
getDefaultScanRoots(
) → List< String> - Gets default scan roots for the current platform.
-
getGradleCachePath(
) → String? - Gets the Gradle global cache directory.
-
getPlatformName(
) → String - Gets the platform name as a string.
-
getPubCachePath(
) → String? - Gets the Dart/Flutter pub cache directory.
-
getXcodeDerivedDataPath(
) → String? - Gets the Xcode DerivedData directory (macOS only).
-
moveToTrash(
String pathString) → Future< bool> - Moves a file or directory to trash (OS-dependent). Returns true if successful, false otherwise. Falls back to direct deletion if trash is not available.