getAmount method

  1. @override
double getAmount(
  1. BuildContext? context
)
override

Implementation

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