modulo operator.
double? operator %(num other) { if (value != null) { return value! % other; } return null; }