Skip to content

Commit 9a08c9f

Browse files
committed
fix not passing args to colorToHex in toHexString extension method
1 parent ce6aee9 commit 9a08c9f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

lib/src/utils.dart

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ extension ColorExtension1 on String {
210210

211211
// Extension from Color
212212
extension ColorExtension2 on Color {
213-
String toHexString({bool includeHashSign = false, bool enableAlpha = true, bool toUpperCase = true}) =>
214-
colorToHex(this, includeHashSign: false, enableAlpha: true, toUpperCase: true);
213+
String toHexString({
214+
bool includeHashSign = false,
215+
bool enableAlpha = true,
216+
bool toUpperCase = true,
217+
}) {
218+
return colorToHex(
219+
this,
220+
includeHashSign: includeHashSign,
221+
enableAlpha: enableAlpha,
222+
toUpperCase: toUpperCase,
223+
);
224+
}
215225
}

0 commit comments

Comments
 (0)