DoHAnswer constructor

DoHAnswer({
  1. String name = "",
  2. int ttl = 0,
  3. int type = 0,
  4. String data = "",
  5. Uri? provider,
})

const

Implementation

DoHAnswer({
  this.name = "",
  this.ttl = 0,
  this.type = 0,
  this.data = "",
  this.provider,
}) : validUntil = DateTime.now().millisecondsSinceEpoch + (ttl * 1000);