attributeOr<T> method
Gets attribute with default.
Implementation
T attributeOr<T>(String key, T defaultValue) {
final value = _attributes[key];
return value is T ? value : defaultValue;
}
Gets attribute with default.
T attributeOr<T>(String key, T defaultValue) {
final value = _attributes[key];
return value is T ? value : defaultValue;
}