asInt property

int get asInt

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

Implementation

int get asInt => value as int;