toIntOrNull method

  1. @useResult
int? toIntOrNull()

Converts this nullable num to an int, or returns null if null. Audited: 2026-06-12 11:26 EDT

Implementation

@useResult
int? toIntOrNull() => this?.toInt();