getData method Null safety

dynamic getData()

Implementation

dynamic getData() {
  return _data;
}