MediaSize constructor

MediaSize({
  1. required int width,
  2. required int height,
  3. required String vendorId,
})

Implementation

MediaSize({
  /// Width (in micrometers) of the media used for printing.
  required int width,

  /// Height (in micrometers) of the media used for printing.
  required int height,

  /// Vendor-provided ID, e.g. "iso_a3_297x420mm" or "na_index-3x5_3x5in".
  /// Possible values are values of "media" IPP attribute and can be found on
  /// <a
  /// href="https://www.iana.org/assignments/ipp-registrations/ipp-registrations.xhtml">
  /// IANA page</a> .
  required String vendorId,
}) : _wrapped = $js.MediaSize(
        width: width,
        height: height,
        vendorId: vendorId,
      );