chore: dart format
This commit is contained in:
parent
6eee90875e
commit
53a2b6fea6
|
|
@ -24,7 +24,7 @@ class ImageDecodingException extends ImageConversionException {
|
|||
class ImageEncodingException extends ImageConversionException {
|
||||
/// Creates an [ImageEncodingException] with the given [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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ void main() {
|
|||
const originalWidth = 10000;
|
||||
const originalHeight = 5000;
|
||||
|
||||
const resizeMode = FitResizeMode(width: 100,);
|
||||
const resizeMode = FitResizeMode(width: 100);
|
||||
final (width, height) = resizeMode.calculateSize(
|
||||
originalWidth,
|
||||
originalHeight,
|
||||
|
|
|
|||
Loading…
Reference in New Issue