FaderPainterData class

The data needed to paint a fader background.

A fader background is a background that fades between a set of colors.

Inheritance

Constructors

FaderPainterData({FaderBehavior behavior = FaderBehavior.specifiedOrder, required List<Color> colors})
Creates a new FaderPainterData object.
const

Properties

behavior FaderBehavior
The behavior of the fader.
final
colors List<Color>
The colors the fader will go through.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({FaderBehavior? behavior, List<Color>? colors}) FaderPainterData
Returns a copy of this object with its field values replaced by the ones provided to this method.
override
getPainter(Animation<double> animation) Painter
Returns a Painter object that will paint the background.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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