onNewPressed property

(void Function()?) onNewPressed
final

Called when the new button is pressed or when the shortcut Ctrl + T is executed.

If null, the new button won't be displayed

Implementation

final void Function()? onNewPressed;