sync method

dynamic sync({
  1. String? fromHost,
})

Implementation

sync({String? fromHost}) async {
  fromHost ??= mainHost;

  //  host remoto
  if (!shareHosts.containsKey(fromHost)) return;

  //  host remoto
  var local = shareHosts['localhost'] as SourceServer?;

  //  sincronizacion
  await local?.sync(fromHost: fromHost);
}