|
|
@@ -35,9 +35,9 @@ class HexColor { |
|
|
|
} |
|
|
|
|
|
|
|
/// Prefixes a hash sign if [leadingHashSign] is set to `true` (default is `true`). |
|
|
|
String toHex({bool leadingHashSign = true}) => '${leadingHashSign ? '#' : ''}' |
|
|
|
'${alpha.toRadixString(16).padLeft(2, '0')}' |
|
|
|
'${red.toRadixString(16).padLeft(2, '0')}' |
|
|
|
'${green.toRadixString(16).padLeft(2, '0')}' |
|
|
|
'${blue.toRadixString(16).padLeft(2, '0')}'; |
|
|
|
// String toHex({bool leadingHashSign = true}) => '${leadingHashSign ? '#' : ''}' |
|
|
|
// '${alpha.toRadixString(16).padLeft(2, '0')}' |
|
|
|
// '${red.toRadixString(16).padLeft(2, '0')}' |
|
|
|
// '${green.toRadixString(16).padLeft(2, '0')}' |
|
|
|
// '${blue.toRadixString(16).padLeft(2, '0')}'; |
|
|
|
} |