asInt property

int get asInt

Implementation

int get asInt {
  if (value is String) return int.parse(value! as String);
  throw StateError("value is not an int. tag=${tagString(tag)}");
}