matchTypeByName method

bool matchTypeByName (String expectedType, TypeCode actualType, [ dynamic actualValue ])

Matches expected type to an actual type.

  • expectedType an expected type name to match.
  • actualType an actual type to match defined by type code.
  • actualValue an optional value to match its type to the expected one. Returns true if types are matching and false if they don't.