GifEncoder class Null safety

Inheritance

Constructors

GifEncoder({int delay = 80, int repeat = 0, int samplingFactor = 10, DitherKernel dither = DitherKernel.FloydSteinberg, bool ditherSerpentine = false})

Properties

delay int
read / write
dither DitherKernel
read / write
ditherSerpentine bool
read / write
hashCode int
The hash code for this object.
read-onlyinherited
output OutputBuffer?
read / write
repeat int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
samplingFactor int
read / write
supportsAnimation bool
Does this encoder support animation?
read-onlyoverride

Methods

addFrame(Image image, {int? duration}) → void
This adds the frame passed to image. After the last frame has been added, finish is required to be called. Optional frame duration is in 1/100 sec.
encodeAnimation(Animation anim) List<int>?
Encode an animation.
override
encodeImage(Image image) List<int>
Encode a single frame image.
override
finish() List<int>?
Encode the images that were added with addFrame. After this has been called (returning the finishes GIF), calling addFrame for a new animation or image is safe again.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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