Rating.parse constructor Null safety

Rating.parse(
  1. XmlElement element
)

Implementation

factory Rating.parse(XmlElement element) {
  return Rating(
    scheme: element.getAttribute('scheme'),
    value: element.text,
  );
}