getDefaultWidthHeightImageFormat static method

SizeAndFormat getDefaultWidthHeightImageFormat()

Get the default width, height and format for the image used in automatically returned images.

Throws

  • An exception if it fails.

Implementation

static SizeAndFormat getDefaultWidthHeightImageFormat() {
  final OperationResult resultString = staticMethod(
    'DefaultWidthHeightImageFormat',
    'get',
  );

  return SizeAndFormat(
    size: Size(
      resultString['width'].toDouble(),
      resultString['height'].toDouble(),
    ),
    format: ImageFileFormatExtension.fromId(resultString['format']),
  );
}