matchValueTypeByName method Null safety

bool matchValueTypeByName(
  1. String expectedType,
  2. 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.