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