IconButton and OnPressed actions

Hi all,

I have created two dart files:

  1. With the design and attach IconButton

  2. Where the File picker button is created.

How I can now force my attach IconButton in first dart file, to work as described in the second dart file, where the logic for File picker button is expressed and working properly?

THanks in advance,