getAmount method
Implementation
@override
double getAmount(BuildContext? context) {
var state = getState(context!);
if (state is InitializedPayState) {
return state.amount;
} else {
return 0;
}
}
@override
double getAmount(BuildContext? context) {
var state = getState(context!);
if (state is InitializedPayState) {
return state.amount;
} else {
return 0;
}
}