feedbackToJson function Null safety

int? feedbackToJson(
  1. FeedbackType? _
)

Implementation

int? feedbackToJson(FeedbackType? _) => _ != null ? _.index : null;