attribute method

String? attribute(
  1. String name
)

Returns the value of name, or null when absent or empty.

Implementation

String? attribute(String name) {
  final String? value = attributes[name];
  return (value == null || value.isEmpty) ? null : value;
}