toNull static method

dynamic toNull(
  1. dynamic value
)

Converts NullValue to null, leaves other values unchanged

Implementation

static dynamic toNull(dynamic value) => value is NullValue ? null : value;