operator < method Null safety

bool? operator <(
  1. num other
)

Relational less than operator.

Implementation

bool? operator <(num other) {
  if (value != null) {
    return value! < other;
  }
}