attribute<T> method
Gets a custom attribute.
Implementation
T? attribute<T>(String key) {
final value = _attributes[key];
return value is T ? value : null;
}
Gets a custom attribute.
T? attribute<T>(String key) {
final value = _attributes[key];
return value is T ? value : null;
}