Skip to content

Glossary: Flutter

onPressed

Also written: onTap, VoidCallback

The function a button runs on each tap; `null` disables it. `onTap` is the same idea for `InkWell`, typed as `VoidCallback` (a function taking and returning nothing).

Where the book teaches it

Related terms

disabledInkWellFilledButton