SyncConfig constructor Null safety

SyncConfig(
  1. {required String syncEndPoint,
  2. String? dbName,
  3. List<Migration> migrations = const [],
  4. Map<Type, SqliteAdapter<SqliteModel>> sqliteMappings = const {},
  5. Map<Type, RestAdapter<RestModel>> restMappings = const {},
  6. DatabaseFactory? dbFactory}
)

Sync config

Implementation

SyncConfig({
  required this.syncEndPoint,
  String? dbName,
  this.migrations = const [],
  this.sqliteMappings = const {},
  this.restMappings = const {},
  this.dbFactory,
}) : dbName = dbName ?? EngineConfig.name;