YaruOptionButton.color constructor
YaruOptionButton.color({
- Key? key,
- required VoidCallback? onPressed,
- FocusNode? focusNode,
- bool autofocus = false,
- ButtonStyle? style,
- required Color color,
Creates a YaruOptionButton with a color disk.
Implementation
YaruOptionButton.color({
super.key,
required super.onPressed,
super.focusNode,
super.autofocus = false,
ButtonStyle? style,
required Color color,
}) : super(
style: _styleFrom(padding: const EdgeInsets.all(10)).merge(style),
child: SizedBox.expand(
child: DecoratedBox(
decoration: BoxDecoration(color: color, shape: BoxShape.circle),
),
),
);