writeScore function Null safety

Object writeScore(
  1. int? score
)

Implementation

Object writeScore(int? score) => score ?? '';