color method

TextButton color(
  1. Color color
)

Implementation

TextButton color(Color color) {
  var newStyle = ButtonStyle(backgroundColor: MaterialStateProperty.all(color));
  var merge = style?.merge(newStyle) ?? newStyle;
  return copyWith(style: merge);
}