# ConvertiblePair class final

Represents a pair of source and target types for type conversion.

This class is used in conversion frameworks to define mappings between one type and another. It forms the basis for determining whether a specific converter can handle a particular type conversion.

### 🔧 Example:

    final pair = ConvertiblePair(Class<String>(), Class<int>());
    print(pair); // java.lang.String -> int

    if (pair.getSourceType() == Class<String>()) {
      print("This pair converts from String");
    }

## Constructors

ConvertiblePair.new(Class sourceType, Class targetType)
  Represents a pair of source and target types for type conversion.

## Properties

hashCode → int
  The hash code for this object.
  no setter override
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited
sourceType → Class
  The source type of the conversion.
  final
targetType → Class
  The target type of the conversion.
  final

## Methods

getSourceType() → Class
  Returns the source type of this pair.
getTargetType() → Class
  Returns the target type of this pair.
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
reverse() → ConvertiblePair
  Creates a new ConvertiblePair with reversed source and target types.
toString() → String
  A string representation of this object.
  override

## Operators

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