chore: dart format
This commit is contained in:
parent
6eee90875e
commit
53a2b6fea6
|
|
@ -24,7 +24,7 @@ class ImageDecodingException extends ImageConversionException {
|
||||||
class ImageEncodingException extends ImageConversionException {
|
class ImageEncodingException extends ImageConversionException {
|
||||||
/// Creates an [ImageEncodingException] with the given [message].
|
/// Creates an [ImageEncodingException] with the given [message].
|
||||||
ImageEncodingException(this.format, [String? message])
|
ImageEncodingException(this.format, [String? message])
|
||||||
: super(message ?? 'Failed to encode image to ${format.name}');
|
: super(message ?? 'Failed to encode image to ${format.name}');
|
||||||
|
|
||||||
final OutputFormat format;
|
final OutputFormat format;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ void main() {
|
||||||
const originalWidth = 10000;
|
const originalWidth = 10000;
|
||||||
const originalHeight = 5000;
|
const originalHeight = 5000;
|
||||||
|
|
||||||
const resizeMode = FitResizeMode(width: 100,);
|
const resizeMode = FitResizeMode(width: 100);
|
||||||
final (width, height) = resizeMode.calculateSize(
|
final (width, height) = resizeMode.calculateSize(
|
||||||
originalWidth,
|
originalWidth,
|
||||||
originalHeight,
|
originalHeight,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue