nullable<T> static method

bool nullable<T>(
  1. T? id
)

Checks if value is null.

Example:

bool isNull = Instance.nullable(null); // true
bool isNotNull = Instance.nullable("Hello"); // false

Implementation

static bool nullable<T>(T? id) {
  return id == null;
}