getIntValue function

int? getIntValue(
  1. DartObject obj,
  2. String name
)

Catch integer property value from dartObject

Implementation

int? getIntValue(DartObject obj, String name) =>
    ifExist(obj, name) ? obj.getField(name)!.toIntValue() : null;