If I code complete on "_saySomething" I get _saySomething() which the compiler immediately complains about.
return AppBar(
title: Text("Super application"),
actions: [
IconButton(
icon: Icon(Icons.access_alarm),
onPressed: _saySomething,
)
],
);
}
void _saySomething() {
print("pressed");
}