background property

  1. @override
Color? get background
override

Implementation

@override
Color? get background {
  if (super.background == null) {
    return enabled && isClickMode
        ? activated
            ? theme.primaryColor.withOpacity(0.1)
            : theme.primaryColor
        : Colors.grey.withOpacity(0.1);
  }
  return super.background;
}
set background (Color? value)
inherited

Implementation

set background(Color? value) => _background = value;