InformationSize.fromMegabytes constructor

InformationSize.fromMegabytes(
  1. Rational megabytes
)

Creates an InformationSize representing the specified number of megabytes.

Implementation

factory InformationSize.fromMegabytes(Rational megabytes) =>
    InformationSize.fromUnits(InformationUnit.megabyte, megabytes);