TypeMatcher class

Helper class matches value types for equality.

This class has symmetric implementation across all languages supported by Pip.Services toolkit and used to support dynamic data processing.

See TypeCode

Constructors

TypeMatcher()

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

matchType(dynamic expectedType, TypeCode actualType, [dynamic actualValue]) bool
Matches expected type to an actual type. The types can be specified as types, type names or TypeCode.
matchTypeByName(String? expectedType, TypeCode actualType, [dynamic actualValue]) bool
Matches expected type to an actual type.
matchValueType(dynamic expectedType, dynamic actualValue) bool
Matches expected type to a type of a value. The expected type can be specified by a type, type name or TypeCode.
matchValueTypeByName(String expectedType, dynamic actualValue) bool
Matches expected type to a type of a value.