MsMaterialColor.fromHexString constructor

MsMaterialColor.fromHexString(
  1. String hexString
)

Construct a MsMaterialColor from a String with hex color

Hex color example "ffc0ba77""

ff is alpha value. c0 is a red value. ba is a green value. 77 is a blue value.

Implementation

factory MsMaterialColor.fromHexString(String hexString) =>
    MsMaterialColor(int.parse(hexString, radix: 16));