ScreenshotParams class

Encoding options for a screenshot.

Constructors

ScreenshotParams({ScreenshotParamsFormat? format, int? quality, bool? optimizeForSpeed})
ScreenshotParams.fromJson(Map<String, dynamic> json)
factory

Properties

format ScreenshotParamsFormat?
Image compression format (defaults to png).
final
hashCode int
The hash code for this object.
no setterinherited
optimizeForSpeed bool?
Optimize image encoding for speed, not for resulting size (defaults to false)
final
quality int?
Compression quality from range 0..100 (jpeg and webp only).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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