BiDirectionalConvert<A, B> class

A bidirectional converter between types A and B.

Encapsulates conversion logic in both directions, allowing seamless transformation between two types.

Constructors

BiDirectionalConvert(Convert<A, B> aToB, Convert<B, A> bToA)
Creates a BiDirectionalConvert.
const

Properties

aToB Convert<A, B>
Converter from type A to type B.
final
bToA Convert<B, A>
Converter from type B to type A.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convertA(A value) → B
Converts a value from type A to type B.
convertB(B value) → A
Converts a value from type B to type A.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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