withUndefinedField<T2> method

UpdateResult<T> withUndefinedField<T2>(
  1. FieldDefinition<T2> field, {
  2. required T constructor(
    1. JsonObject
    ),
})

Implementation

UpdateResult<T> withUndefinedField<T2>(
  FieldDefinition<T2> field, {
  required T Function(JsonObject) constructor,
}) =>
    UpdateSuccess(
      constructor(json.withUpdate(field.name, const Undefined())),
    );