ByteModel class sealed
- Available extensions
- Annotations
-
- @freezed
Constructors
- ByteModel.bytes(double value)
-
constfactory
- ByteModel.create(double bytes)
-
factory
- ByteModel.createFromFile(File file)
-
factory
- ByteModel.gb(double value)
-
constfactory
- ByteModel.kb(double value)
-
constfactory
- ByteModel.mb(double value)
-
constfactory
- ByteModel.tb(double value)
-
constfactory
Properties
-
copyWith
→ $ByteModelCopyWith<
ByteModel> -
Create a copy of ByteModel
with the given fields replaced by the non-null parameter values.
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
- unit → String
-
Available on ByteModel, provided by the ByteModelEx extension
no setter - value → double
-
no setterinherited
Methods
-
format(
[int fixed = 1]) → String -
Available on ByteModel, provided by the ByteModelEx extension
格式化显示大小 -
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