toNullableType<T> method

T toNullableType <T>(
  1. TypeCode type,
  2. dynamic value
)

Converts value into an object type specified by Type Code or returns null when conversion is not possible.

  • type the TypeCode for the data type into which 'value' is to be converted.
  • value the value to convert. Returns object value of type corresponding to TypeCode, or null when conversion is not supported.

See toTypeCode