backgroundColor method
Extension for coloring a widget with DecoratedBox
Implementation
DecoratedBox backgroundColor(Color? color) {
return DecoratedBox(
decoration: BoxDecoration(
color: color,
),
child: this,
);
}
Extension for coloring a widget with DecoratedBox
DecoratedBox backgroundColor(Color? color) {
return DecoratedBox(
decoration: BoxDecoration(
color: color,
),
child: this,
);
}