SelectableParent constructor
SelectableParent({
- Key? key,
- required Widget child,
- Widget? title,
- Color? color,
- Decoration? decoration,
Implementation
SelectableParent({
Key? key,
required this.child,
this.title,
Color? color,
Decoration? decoration,
}) : assert(decoration == null || decoration.debugAssertIsValid()),
assert(
color == null || decoration == null,
'Cannot provide both a color and a decoration\n'
'The color argument is just a shorthand for\n'
"decoration: BoxDecoration(color: color ?? Colors.blue,shape:BoxShape.circle).",
),
decoration =
decoration ?? BoxDecoration(color: color ?? Colors.transparent),
super(key: key);