onVoucherGeneration static method
void
onVoucherGeneration({})
Implementation
static void onVoucherGeneration(
{required String orderId,
required String routeName,
bool couponApplied = false,
double rewardPercentage = 0.0}) {
final navigator = getObject<INavigationHelpers>();
navigator.navigate(
routeName,
params: {
'orderId': orderId,
},
queryParams: {
'couponApplied': couponApplied.toString(),
'rewardPercentage': rewardPercentage.toString(),
},
push: true,
named: true,
eventProps: {
'orderId': orderId,
},
);
}