NewButton constructor

const NewButton({
  1. required VoidCallback onPressed,
  2. String tooltip = 'new',
  3. Key? key,
})

Create an instance.

Implementation

const NewButton({
  required this.onPressed,
  this.tooltip = 'new',
  super.key,
});