backgroundColor property Null safety

Color? backgroundColor
@JsonKey(includeIfNull: false, fromJson: _$ColorFromJson, toJson: _$ColorToJson), read / write

The background color in RGB hex. Value only. Do not include a preceding #. For example, 0xFFB6C1 (light pink). The default value is 0x000000 (black).

Implementation

@JsonKey(
    includeIfNull: false, fromJson: _$ColorFromJson, toJson: _$ColorToJson)
Color? backgroundColor;