containsAsType<T> method

bool containsAsType <T>(TypeCode typeCode, dynamic value)

Checks if this array contains a value. The check before comparison converts elements and the value to type specified by type code.

  • typeCode a type code that defines a type to convert values before comparison
  • value a value to be checked Returns true if this array contains the value or false otherwise.

See TypeConverter.toType See TypeConverter.toNullableType