hexColor method

VxCard hexColor(
  1. String colorHex
)

The card's background color by hex value.

Defines the card's Material.color.

If this property is null then CardTheme.color of ThemeData.cardTheme is used. If that's null then ThemeData.cardColor is used.

Implementation

VxCard hexColor(String colorHex) =>
    this..velocityColor = Vx.hexToColor(colorHex);