onPressed method

AzButton onPressed(
  1. VoidCallback? callback
)

Implementation

AzButton onPressed(VoidCallback? callback){
  _onPressed = callback;
  return this;
}