Skip to content

Commit eef6170

Browse files
style: Fix lint info
1 parent fd35007 commit eef6170

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/form_builder_extra_fields/lib/src/fields/form_builder_color_picker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ extension on Color {
1717
/// Prefixes a hash sign if [leadingHashSign] is set to `true` (default is `true`).
1818
String toHex({bool leadingHashSign = true}) {
1919
/// Converts an rgba value (0-255) into a 2-digit Hex code.
20-
String _hexValue(int rgbaVal) {
20+
String hexValue(int rgbaVal) {
2121
assert(rgbaVal == rgbaVal & 0xFF);
2222
return rgbaVal.toRadixString(16).padLeft(2, '0').toUpperCase();
2323
}
2424

2525
return '${leadingHashSign ? '#' : ''}'
26-
'${_hexValue(alpha)}${_hexValue(red)}${_hexValue(green)}${_hexValue(blue)}';
26+
'${hexValue(alpha)}${hexValue(red)}${hexValue(green)}${hexValue(blue)}';
2727
}
2828
}
2929

0 commit comments

Comments
 (0)