ConversionUtils class abstract
Utility class containing common operations used by conversion infrastructure.
This class provides static helper methods to:
- Safely invoke a PairedConverter
- Determine if element-wise conversion is possible
- Resolve the enum class from a type
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
canConvert(
Class? source, Class? target, ConversionService conversionService) → bool -
Checks if a conversion from
source
totarget
is possible using the givenconversionService
. -
getEnumType(
Class? targetType) → Class -
Resolves the enum class from the given
targetType
. -
invoke<
T> (PairedConverter converter, Object? source, Class sourceType, Class targetType) → Object? -
Invokes the provided
converter
with the givensource
,sourceType
, andtargetType
descriptors, handling conversion failures appropriately.