asIntOrNull property

int? get asIntOrNull

Get the int value of this JSON value, or null if other type.

Implementation

int? get asIntOrNull => value is int ? value as int : null;