StorageUnitInfo constructor

StorageUnitInfo({
  1. required String id,
  2. required String name,
  3. required StorageUnitType type,
  4. required double capacity,
})

Implementation

StorageUnitInfo({
  /// The transient ID that uniquely identifies the storage device.
  /// This ID will be persistent within the same run of a single application.
  /// It will not be a persistent identifier between different runs of an
  /// application, or between different applications.
  required String id,

  /// The name of the storage unit.
  required String name,

  /// The media type of the storage unit.
  required StorageUnitType type,

  /// The total amount of the storage space, in bytes.
  required double capacity,
}) : _wrapped = $js.StorageUnitInfo(
        id: id,
        name: name,
        type: type.toJS,
        capacity: capacity,
      );