farm property Null safety

Farm? farm

Implementation

Farm? get farm => _farms != null && _farms!.length > 0 ? currentFarm : null;