onTapUp method

  1. @override
void onTapUp(
  1. TapUpEvent event
)

Handles the tap up event by resetting the background color to color and triggering the onPressed callback.

Implementation

@override
void onTapUp(TapUpEvent event) {
  background.paint.color = color;
  onPressed();
}