getBooleanProperty method

bool? getBooleanProperty(
  1. String key
)

Returns a bool of the additional properties for the given ID Returns null if the key is not a boolean property

Implementation

bool? getBooleanProperty(String key) {
  var data = properties[key];
  if (data != null) {
    if (data["type"] == "boolean") {
      return data["value"];
    }
  }
  return null;
}