theme property

McpIconTheme? get theme

Optional specifier for the theme this icon is designed for. "light" indicates the icon is designed to be used with a light background, and "dark" indicates the icon is designed to be used with a dark background.

If not provided, the client should assume the icon can be used with any theme.

Implementation

McpIconTheme? get theme => $optional('theme', $enum(McpIconTheme.of));