backgroundColor property

Color get backgroundColor

Implementation

Color get backgroundColor {
  if (widget.outlined) {
    return Colors.transparent;
  } else if (widget.color != null) {
    return widget.color!;
  } else if (isIcon) {
    return Colors.grey.shade200;
  } else {
    return Theme.of(context).primaryColor;
  }
}