toInt method Null safety

int? toInt()

Truncates the double value and returns the int

Returns null if the double value is null

Implementation

int? toInt() => _value?.toInt();