BoxShadow class

A CSS box shadow.

const shadow = BoxShadow(blurRadius: 8);

Constructors

BoxShadow({Color color = Colors.black, num x = 0, num y = 2, num blurRadius = 4, num spreadRadius = 0})
Creates a shadow with optional offsets and blur.
const

Properties

blurRadius → num
Blur radius.
final
color → Color
Shadow color.
final
css → String
CSS box-shadow value.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spreadRadius → num
Spread radius.
final
x → num
Horizontal offset.
final
y → num
Vertical offset.
final

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