LightSource class

A custom offset that define a source of light used to project a shadow of a widget left -1 <= dx <= 1 right top -1 <= dy <= 1 bottom

constants like "top", "topLeft", "topRight" are providen in LightSource

Annotations

Constructors

LightSource(double dx, double dy)
const

Properties

dx double
final
dy double
final
hashCode int
The hash code for this object.
no setteroverride
offset Offset
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? dx, double? dy}) LightSource
invert() LightSource
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toOffset(double distance) Offset
toString() String
A string representation of this object.
override

Operators

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

Static Methods

lerp(LightSource? a, LightSource? b, double t) LightSource?

Constants

bottom → const LightSource
bottomLeft → const LightSource
bottomRight → const LightSource
left → const LightSource
top → const LightSource
topLeft → const LightSource
topRight → const LightSource