I'm trying to call a method(defined on a different page), using the Floating Action Button from another page.
FloatingActionButton
floatingActionButton: FloatingActionButton(
onPressed: () {},
child: Icon(
Icons.add,
color: Colors.white70,
),
splashColor: Colors.blueGrey,
backgroundColor: Colors.blueAccent,
),
The method which I need to call is inside
void _showForm(int? id) async {}
_showForm returns showModalBottomSheet