PlatformRepo constructor

PlatformRepo([
  1. MyAppApi? api
])

Implementation

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