InetConverter class final

Stores textual IPv4/IPv6 addresses (optionally with CIDR prefix) as inet. Pair with DbType(postgres: 'inet'); other engines reject its native binding.

Implemented types

Constructors

InetConverter()
Creates a stateless address converter.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sqlType → SqlType
The binding type of the encoded value, independent of native DDL overrides.
no setteroverride

Methods

encodeNull() → NativeSqlValue
Returns a typed native NULL marker without converting a domain value.
override
fromDb(Object value) → String
Decodes a non-null, normalized SQL value into a Dart value.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDb(String value) → NativeSqlValue
Encodes a non-null Dart value for storage or comparison.
override
toString() → String
A string representation of this object.
inherited

Operators

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