getBoolValue function

bool getBoolValue(
  1. DartObject obj,
  2. String name
)

Catch bool property value from dartObject

Implementation

bool getBoolValue(DartObject obj, String name) =>
    ifExist(obj, name) ? obj.getField(name)!.toBoolValue() ?? false : false;