LightFalloff enum

How the light fades from the center to its edge.

Inheritance
Available extensions

Values

blur → const LightFalloff

Soft edge produced by MaskFilter.blur (the historical behavior). It still uses LightingConfig.blurBorder.

Kept for backwards compatibility: the blur spills beyond the light radius and can shimmer on backends that do not handle large MaskFilter.blur well (notably Impeller and web). Prefer smooth or linear for new lights.

linear → const LightFalloff

Alpha decreases linearly from LightingConfig.innerRadius to the edge.

smooth → const LightFalloff

Alpha decreases with a smoothstep curve from LightingConfig.innerRadius to the edge.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<LightFalloff>
A constant List of the values in this enum, in order of their declaration.