backgroundColor property
Color
backgroundColor
Implementation
Color get backgroundColor {
final colorString =
node.attributes[blockComponentBackgroundColor] as String?;
if (colorString == null) {
return Colors.transparent;
}
return blockComponentBackgroundColorDecorator?.call(
node,
colorString,
) ??
colorString.tryToColor() ??
Colors.transparent;
}