SpotlightStyle class

A style which defines how a Spotlight looks.

Mixed in types
Annotations

Constructors

SpotlightStyle({double? radius, Gradient? gradient})
Creates a style which defines how a Spotlight looks.
const

Properties

gradient Gradient?
The Gradient to color the Spotlight with.
final
hashCode int
The hash code for this object.
no setteroverride
radius double?
The radius of the Spotlight.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? radius, Gradient? gradient}) SpotlightStyle
Makes a copy of this style with the given values replacing existing values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
merge(SpotlightStyle? other) SpotlightStyle
Merges other into this instance by overwriting values in this instance with values from other.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Properties

defaultStyle SpotlightStyle
The default SpotlightStyle used by Spotlight when non is provided.
getter/setter pair

Static Methods

createDefaultGradient(Color color) RadialGradient
Returns a RadialGradient which works well as as radial light source with color.
lerp(SpotlightStyle? a, SpotlightStyle? b, double t) SpotlightStyle?
Linearly interpolates between two SpotlightStyles.