CommonRepo constructor

CommonRepo([
  1. MyAppApi? api
])

Implementation

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