matchTypeByName method Null safety

bool matchTypeByName(
  1. String? expectedType,
  2. TypeCode actualType,
  3. [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.