BoxDecoration class
CSS decoration values for a Container.
Container(decoration: BoxDecoration(color: Colors.white));
Constructors
-
BoxDecoration({Color? color, BorderRadius? borderRadius, Border? border, List<
BoxShadow> boxShadow = const []}) -
Creates a box decoration.
const
Properties
- border → Border?
-
Optional border.
final
- borderRadius → BorderRadius?
-
Optional corner radius.
final
-
boxShadow
→ List<
BoxShadow> -
Box shadows.
final
- color → Color?
-
Optional background color.
final
- css → String
-
CSS declarations for this decoration.
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
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