FileSize class Null safety

Encapsulates file size.

Mixed in types
Annotations

Constructors

FileSize(int totalBytes)
Initializes an instance of FileSize
const
factory

Properties

copyWith → $FileSizeCopyWith<FileSize>
@JsonKey(ignore: true), read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
totalBytes int
Total bytes.
read-only, inherited
totalGigaBytes double
Total gigabytes.
read-only
totalKiloBytes double
Total kilobytes.
read-only
totalMegaBytes double
Total megabytes.
read-only

Methods

compareTo(FileSize other) int
Compares this object to another object. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited