farmToFarmId function Null safety

String? farmToFarmId(
  1. Farm? _
)

Implementation

String? farmToFarmId(Farm? _) => _ != null ? _.id : null;