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