EnumStatusBadge constructor
const
EnumStatusBadge({
- Key? key,
- required EnumModel status,
- @Deprecated('Use backgroundColorKey via EnumModel.backgroundColor or theme tokens; this prop will be removed in a future release.') Color? backgroundColor,
Creates an EnumStatusBadge widget.
Parameters:
status: The enum model containing status information (required).backgroundColor: Explicit background color (deprecated, use EnumModel.backgroundColor instead).
Note: The widget automatically handles color resolution:
- If the color is a hex value and no background color is provided, it creates a semi-transparent background
- If the color is a theme token and no background color is provided, it reuses the color token for the background
Implementation
const EnumStatusBadge({
super.key,
required this.status,
@Deprecated(
'Use backgroundColorKey via EnumModel.backgroundColor or theme tokens; this prop will be removed in a future release.')
this.backgroundColor,
});