Effect class

Inheritance
Implementers

Constructors

Effect()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
override

Operators

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

Static Methods

accelerate([dynamic rate]) Accelerate
Changes the speed of the video playback.
advancedRedEye() AdvancedRedEye
Removes red eyes with the Advanced Facial Attribute Detection add-on.
artisticFilter(ArtisticFilter filter) Artistic
Applies the selected artistic filter to the image.
assistColorBlind({dynamic strength, AssistColorBlindType? type}) AssistColorBlind
Applies stripes to the image to help people with common color-blind conditions to differentiate between colors that are similar for them.
blackwhite([dynamic threshold]) Blackwhite
Converts the image to black and white.
blur({dynamic strength, Region? region}) Blur
Applies a blurring filter to the asset. Receives dynamic, Region object and returns Effect
boomerang() Boomerang
Causes a video clip to play forwards and then backwards.
cartoonify({dynamic lineStrength, dynamic colorReductionLevel, bool? blackwhite}) Cartoonify
Applies a cartoon effect to an image. Receives dynamic, dynamic, bool returns Effect.
colorize({dynamic level, Color? color}) Colorize
Colorizes the image.
deshake([ShakeStrength? factor]) Deshake
Removes small motion shifts from the video. with a maximum extent of movement in the horizontal and vertical direction of 32 pixels Receives ShakeStrength object returns Effect
dither([DitherObject? filter]) Dither
Applies an ordered dither filter to the image.
fadeIn([int? duration]) FadeIn
Fade in at the beginning of the video.
fadeOut([int? duration]) FadeOut
Fade out at the end of the video.
gradientFade({dynamic strength, dynamic type, dynamic horizontalStartPoint, dynamic verticalStartPoint}) GradientFade
Applies a gradient fade effect from the top edge of the image.
grayscale() Grayscale
Converts the image to gray-scale (multiple shades of gray). returns Effect
loop([int? additionalIterations]) Loop
Delivers an animated GIF that contains additional loops of the GIF.
makeTransparent({dynamic tolerance, dynamic colorToReplace}) MakeTransparent
Makes the background of the image transparent (or solid white for formats that do not support transparency). The background is determined as all pixels that resemble the pixels on the edges of the image.
negate() Negate
Negates the image colors (negative). returns Effect
noise([dynamic level]) Noise
Adds visual noise to the video, visible as a random flicker of "dots" or "snow".
oilPaint([dynamic strength]) OilPaint
Applies an oil painting effect to the image.
outline({dynamic mode, Color? color, int? width, int? blurLevel}) Outline
Adds an outline to a transparent image.
pixelate({dynamic squareSize, Region? region}) Pixelate
Applies a pixelation effect to the image. Receives dynamic, Region object and returns Effect
redEye() RedEye
Removes red eyes in the image. returns Effect
removeBackground({bool? screen, Color? color}) RemoveBackground
Makes the background of an image transparent (or solid white for JPGs).
reverse() Reverse
Plays the video or audio file in reverse. returns Effect
sepia([dynamic level]) Sepia
Changes the color scheme of the image to sepia.
shadow({dynamic strength, Color? color, dynamic offsetX, dynamic offsetY}) Shadow
Adds a shadow to the image.
simulateColorBlind([SimulateColorBlindObject? condition]) SimulateColorBlind
Simulates the way an image would appear to someone with the specified color blind condition.
theme(Color color, {int? photosensitivity}) Theme
Changes the main background color to the one specified, as if a 'theme change' was applied (e.g. dark mode vs light mode).
vectorize({dynamic numOfColors, dynamic detailsLevel, dynamic despeckleLevel, dynamic paths, dynamic cornersLevel}) Vectorize
Vectorizes the image.
vignette([dynamic strength]) Vignette
Applies a vignette effect. Receives dynamic object returns Effect.