DCFGradient class

Gradient definition for DCFlight styling

Constructors

DCFGradient({required DCFGradientType type, required List<Color> colors, List<double>? stops, double? startX, double? startY, double? endX, double? endY, double? centerX, double? centerY, double? radius})
const
DCFGradient.linear({required List<Color> colors, List<double>? stops, double startX = 0.0, double startY = 0.0, double endX = 1.0, double endY = 1.0})
Create a linear gradient
factory
DCFGradient.radial({required List<Color> colors, List<double>? stops, double centerX = 0.5, double centerY = 0.5, double radius = 0.5})
Create a radial gradient
factory

Properties

centerX double?
final
centerY double?
final
colors List<Color>
final
endX double?
final
endY double?
final
hashCode int
The hash code for this object.
no setterinherited
radius double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startX double?
final
startY double?
final
stops List<double>?
final
type DCFGradientType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert gradient to map for serialization
toString() String
A string representation of this object.
inherited

Operators

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