isInt property Null safety

bool isInt

Checks if num is int

Implementation

bool get isInt => (this % 1) == 0;