getAsNullableType<T> method

T? getAsNullableType<T>(
  1. TypeCode type
)

Converts object value into a value defined by specied typecode. If conversion is not possible it returns null.

  • type the TypeCode that defined the type of the result Returns value defined by the typecode or null if conversion is not supported.

See TypeConverter.toNullableType

Implementation

T? getAsNullableType<T>(TypeCode type) {
  return TypeConverter.toNullableType<T>(type, _value);
}