PaymentRepo constructor

PaymentRepo([
  1. MyAppApi? api
])

Implementation

factory PaymentRepo([MyAppApi? api]) {
  _instance ??= PaymentRepo._();
  _instance!._api = api ?? MyAppApiImp();
  return _instance!;
}