AnimatedGlitchController class Without shader

Controller to control the AnimatedGlitchWithoutShader widget.

Generates random glitches based on frequency, chance and level.

Constructors

AnimatedGlitchController({Duration frequency = const Duration(milliseconds: 1000), int chance = 50, double level = 1.0, ColorChannelShift colorChannelShift = const ColorChannelShift(), DistortionShift distortionShift = const DistortionShift(), bool autoStart = true})

Properties

chance int
The chance of a glitch to occur.
getter/setter pair
colorChannelShift ColorChannelShift
Settings for color channel shifting.
getter/setter pair
distortionShift DistortionShift
Settings for distortion shifting.
getter/setter pair
frequency Duration
The frequency of the glitches.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isActive bool
Whether the controller is active.
no setter
level double
The level of the glitches.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widgetSize Size?
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
bind(Size widgetSize) → void
Binds the controller to the AnimatedGlitchWithoutShader widget.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() → void
Resets the controller.
start() → void
Starts the controller.
stop() → void
Stops the controller.
toString() String
A string representation of this object.
inherited

Operators

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