checkProperty method
Checks if a property matches the expected value
Implementation
bool checkProperty(
String name,
String expectedValue, {
bool matchIfMissing = false,
}) {
final value = getProperty(name);
if (value == null) return matchIfMissing;
return value == expectedValue;
}