AdGradient class

Implementers

Constructors

AdGradient({required String type, List<Color>? colors, AdGradientOrientation? orientation, Alignment gradientCenter = const Alignment(0.5, 0.5), double? radialGradientRadius})

Properties

colors List<Color>?
The colors of the gradients. There must be at least two colors
final
gradientCenter Alignment
The center point of the gadient used by AdRadialGradient.
final
hashCode int
The hash code for this object.
no setterinherited
orientation AdGradientOrientation?
The orientation of the gradient. Default to left to right
final
radialGradientRadius double?
The radius used by AdRadialGradient
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of the gradient.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

LINEAR → const String
Linear gradient. Used by AdLinearGradient
RADIAL → const String
Radial gradient. Used by AdRadialGradient