getAsNullableType<T> method

T? getAsNullableType<T>(
  1. TypeCode type,
  2. int index
)

Converts array element 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
  • index an index of element to get. Returns element value defined by the typecode or null if conversion is not supported.

See TypeConverter.toNullableType

Implementation

T? getAsNullableType<T>(TypeCode type, int index) {
  var value = _values[index];
  return TypeConverter.toNullableType<T>(type, value);
}