addDetail method Null safety

void addDetail(
  1. String detail
)

Implementation

void addDetail(String detail) => _details.add(detail);