Skip to main content

iconButton function

[Widget] iconButton(

  1. [[String] key, ]
  2. [[Widget] icon, ]
  3. [void ]

)

It prints "tapped" in the console for the developer to know that the button was tapped.

params:

  • key: Key of the Widget
  • icon: Icon to be displayed
  • onTap: on tap function

returns:

  • Widget: returns IconButton.

Implementation

Widget iconButton(String key, Widget icon, void  onTap) 
  1. talawa
  2. invite_child
  3. iconButton function
invite_child library