LegalRepo constructor

LegalRepo([
  1. MyAppApi? api
])

Implementation

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