matchValueTypeByName method

bool matchValueTypeByName (String expectedType, dynamic actualValue)

Matches expected type to a type of a value.

  • expectedType an expected type name to match.
  • actualValue a value to match its type to the expected one. Returns true if types are matching and false if they don't.