onPressed property

(void Function(bool isFrontFacing)?) onPressed
final

You can do what you want after pressed.

Implementation

final void Function(bool isFrontFacing)? onPressed;