MountInfo class Core
Information about a storage mount point used by the application.
Provides details about storage locations including total capacity, free space, and whether the path is internal storage or used for online caching. Instances are returned by Debug.getAppIOInfo to help monitor storage usage.
See also:
- Debug.getAppIOInfo - For retrieving list of storage mount points.
Constructors
- MountInfo({required String path, required int freeSpace, required int totalSpace, required bool internalPath, required bool onlineCachePath})
- Creates a mount info instance with storage details.
-
MountInfo.fromJson(Map<
String, dynamic> json) -
Deserializes a JSON-compatible map to create an instance.
factory
Properties
- freeSpace ↔ int
-
The free space available in bytes.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- internalPath ↔ bool
-
Whether this is an internal storage path.
getter/setter pair
- onlineCachePath ↔ bool
-
Whether this path is used for online caching.
getter/setter pair
- path ↔ String
-
The path to the mount point.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalSpace ↔ int
-
The total storage capacity in bytes.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited