Skip to content

Commit 27a3b4f

Browse files
style: format code
1 parent a622173 commit 27a3b4f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/src/exporter.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class Exporter {
3030
}
3131
final bytesImages = <RawFrame>[];
3232
for (final frame in _frames) {
33-
final bytesImage = await frame.image.toByteData(format: ui.ImageByteFormat.png);
33+
const ui.ImageByteFormat format = ui.ImageByteFormat.png;
34+
final bytesImage = await frame.image.toByteData(format: format);
3435

3536
if (frame.image.width >= _maxWidthFrame) {
3637
_maxWidthFrame = frame.image.width;
@@ -101,7 +102,10 @@ class Exporter {
101102
return newPalette;
102103
}
103104

104-
static image.Image _encodeGifWIthTransparency(image.Image srcImage, {int transparencyThreshold = 1}) {
105+
static image.Image _encodeGifWIthTransparency(
106+
image.Image srcImage, {
107+
int transparencyThreshold = 1,
108+
}) {
105109
var format = srcImage.format;
106110
image.Image image32;
107111
if (format != image.Format.int8) {

0 commit comments

Comments
 (0)