everyone. I'm new to GoRouter
, and I'm looking for guidance for webApp on how to pass multiple parameters in GoRouter. I've seen many examples, but they all use strings, whereas I have parameters of type 'Function' and 'bool'.
Here's my class:
class EditCustomerPage extends StatefulWidget {
final Function updateTab;
final bool edit;
const EditCustomerPage({
Key? key,
required this.updateTab,
required this.edit,
}) : super(key: key);
@override
_EditCustomerPageState createState() => _EditCustomerPageState();
}
Define route as follows:
Call it as follows to navigate: