Skip to content

Commit 578118e

Browse files
committed
⚡ Added const constructor for color_converter.dart
1 parent e7cfe5c commit 578118e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/chopper/color_converter.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import 'package:freezed_annotation/freezed_annotation.dart';
44

55
/// A class that implements JsonConverter to convert Color objects to and from JSON.
66
class ColorConverter implements JsonConverter<Color, String> {
7+
/// A class that implements JsonConverter to convert Color objects to and from JSON.
8+
const ColorConverter();
9+
710
/// Converts a hexadecimal color string from JSON to a Color object.
811
///
912
/// The input string [json] is expected to be a hexadecimal color string.

0 commit comments

Comments
 (0)