DNSRecord class Null safety

Constructors

DNSRecord({required int ttl, required String type, required String host, required String value})
DNSRecord.blank()
Returns Blank Record
factory
DNSRecord.fromJson(dynamic json)
Creates Record From JSON
factory
DNSRecord.newAuth({required String prefix, required String name, required String fingerprint})
Creates New Auth Record from AuthResponse
factory
DNSRecord.newName({required String publicKey, required String name})
Creates New Name Record from AuthResponse
factory

Properties

fingerprint Uint8List
Returns the fingerprint for this record.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
host String
Record hostname
read / write
isAuth bool
Checks if this record is a Auth Type Record
read-only
isBlank bool
Checks if this record is blank
read-only
isName bool
Checks if this record is a Name Type Record
read-only
isNotBlank bool
Checks if this record is NOT blank
read-only
name String
Returns Record SName by Record Type
read-only
prefix String
Returns Prefix from this Record
read-only
publicKey String
Returns Public Key from this Record
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
ttl int
Record TTL (Time to Live) in Seconds
read / write
type String
Record type (e.g. A, CNAME, MX, TXT, etc.)
read / write
value String
Record value (e.g. publicKey, fingerprint, etc.)
read / write

Methods

equals(String n, String p) bool
Checks if this Record has a VALID fingerprint
equalsName(String n) bool
Checks if this Record EQUALS given name
equalsPrefix(String p) bool
Checks if this Record EQUALS equal given prefix
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
notEquals(String n, String p) bool
Checks if this Record has a INVALID fingerprint
notEqualsName(String n) bool
Checks if this Record DOES NOT equal given name
notEqualsPrefix(String p) bool
Checks if this Record DOES NOT equal given prefix
toMap() Map<String, dynamic>
Converts Record to Map for REST API
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

extractFingerprint(String value) Uint8List
Extracts FingerPrint from Record Value
extractName(String host) String
Extracts Name from Record Host
extractPrefix(String host) String
Extracts Prefix from Record Host
newRegisteredRecords({required String prefix, required String name, required String fingerprint, required String publicKey}) List<DNSRecord>
Returns Auth/Name Record from AuthResponse 0 - AuthRecord 1 - NameRecord