SyncController constructor Null safety

SyncController(
  1. {SyncConfig? config,
  2. SyncRepository? repository}
)

Sync controller

Implementation

SyncController({SyncConfig? config, SyncRepository? repository})
    //code-coverage: ignore-start
    : config = config ?? SyncConfig.engineDefault() {
  this.repository = repository ??
      SyncRepository(
        config: this.config,
        client: Get.find<ApiRestClient>().client,
      );
}