Light class
The global light source. Check the online documentation.
Constructors
-
Light({Anchor? anchor, int? color, StyleTransition? colorTransition, double? intensity, StyleTransition? intensityTransition, List<
double?> ? position, StyleTransition? positionTransition})
Properties
- anchor ↔ Anchor?
-
Whether extruded geometries are lit relative to the map or viewport.
getter/setter pair
- color ↔ int?
-
Color tint for lighting extruded geometries.
getter/setter pair
- colorTransition ↔ StyleTransition?
-
Color tint for lighting extruded geometries.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- intensity ↔ double?
-
Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
getter/setter pair
- intensityTransition ↔ StyleTransition?
-
Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
getter/setter pair
-
position
↔ List<
double?> ? -
Position of the light source relative to lit (extruded) geometries, in
r radial coordinate, a azimuthal angle, p polar angle
where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° whenlight.anchor
is set toviewport
corresponds to the top of the viewport, or 0° whenlight.anchor
is set tomap
corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).getter/setter pair - positionTransition ↔ StyleTransition?
-
Position of the light source relative to lit (extruded) geometries, in
r radial coordinate, a azimuthal angle, p polar angle
where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° whenlight.anchor
is set toviewport
corresponds to the top of the viewport, or 0° whenlight.anchor
is set tomap
corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
) → String -
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