GoogleTranslator constructor

GoogleTranslator({
  1. String serverHost = defaultServerHost,
  2. ClientType clientType = ClientType.siteGT,
})

allow to set base URL since for countries the default URL doesn't work

Implementation

GoogleTranslator({
  this.serverHost = defaultServerHost,
  this.clientType = ClientType.siteGT,
});