isEditableWeight method Null safety

bool isEditableWeight(
  1. dynamic orderedNutrient
)

Typical use-case: should we make the Unit button clickable?

Implementation

static bool isEditableWeight(final OrderedNutrient orderedNutrient) =>
    _getDefaultUnit(orderedNutrient.id) == null;