create static method

Payment create({
  1. required MethodChannel channel,
})

Implementation

static Payment create({
  required MethodChannel channel,
}) {
  if (_instance != null) {
    return _instance!;
  }

  final payment = Payment._(channel: channel);
  _instance = payment;
  return payment;
}