toNullable method

T? toNullable()

Returns the inner type as the nullable version of T

Implementation

@pragma("vm:prefer-inline")
T? toNullable() {
  return v;
}