SelectableParent constructor

SelectableParent({
  1. Key? key,
  2. required Widget child,
  3. Widget? title,
  4. Color? color,
  5. 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);