Convert<S, T> class

Wrapper class for a Converter that preserves the type information.

Constructors

Convert(Converter<S, T> convertSource, {Converter<T, S>? convertTarget, Type? sourceType, Type? targetType})
Create a new Convert instance convert the Converter

Properties

convertSource Converter<S, T>
final
convertTarget Converter<T, S>?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceType Type
getter/setter pair
targetType Type
getter/setter pair

Methods

convert(S source) → T
get() Converter
return the wrapped Converter
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sourceConverter() Converter
targetConverter() Converter
toString() String
A string representation of this object.
inherited

Operators

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