ShadowLayer class
Configuration for a single shadow layer.
Constructors
-
ShadowLayer({required double opacity, required double radius, required Map<
String, double> offset}) -
Creates a new ShadowLayer instance.
const
-
ShadowLayer.fromJson(Map<
String, dynamic> json) -
Creates a ShadowLayer from a JSON map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
offset
→ Map<
String, double> -
Shadow offset in points.
final
- opacity → double
-
Shadow opacity (0.0 to 1.0).
final
- radius → double
-
Shadow blur radius in points.
final
- 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
-
toJson(
) → Map< String, dynamic> - Converts this ShadowLayer to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited