onPressed property
What a press runs: the constructor's onPressed, or the drawn spec's.
Implementation
@override
void Function(BuildContext context) get onPressed =>
_onPressed ?? action?.onPressed ?? _none;
What a press runs: the constructor's onPressed, or the drawn spec's.
@override
void Function(BuildContext context) get onPressed =>
_onPressed ?? action?.onPressed ?? _none;