DiskSpaceModel class
Model class representing disk space information.
- Annotations
-
- @freezed
Constructors
- DiskSpaceModel({int? totalDiskSpace, int? freeDiskSpace, int? usedDiskSpace, double? usedPercentage})
-
Factory constructor for creating a new
DiskSpaceModelinstance.constfactory -
DiskSpaceModel.fromJson(Map<
String, dynamic> json) -
Factory method for creating a
DiskSpaceModelfrom a JSON object.factory
Properties
-
copyWith
→ $DiskSpaceModelCopyWith<
DiskSpaceModel> -
no setterinherited
- freeDiskSpace → int?
-
Free disk space in bytes.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalDiskSpace → int?
-
Total disk space in bytes.
no setterinherited
- usedDiskSpace → int?
-
Used disk space in bytes.
no setterinherited
- usedPercentage → double?
-
Used disk space percentage.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited