isSubtypeOfFunc property

bool Function(BridgedClass other, {Object? value})? isSubtypeOfFunc
final

A function that determines if the current runtime type is a subtype of another runtime type.

This function is used to perform subtype checking at runtime, which is essential for type safety and polymorphism in the bridge system.

Parameters:

  • other: The runtime type to check against for subtype relationship
  • value: Optional value that can be used for additional context during subtype checking

Returns:

  • true if this type is a subtype of other
  • false if this type is not a subtype of other

The function can be null if subtype checking is not supported or not needed for this particular runtime type.

Implementation

final bool Function(BridgedClass other, {Object? value})? isSubtypeOfFunc;