During the implementation of primitive enums in flutter/packages#4580, non-nullable enum return values were incorrectly set as non-wrapped enums. This is incorrect as errors should result in a nil response and thus requires a wrapper to make the enum return value nullable.