setDefaultValues method

  1. @override
DocumentModel setDefaultValues(
  1. DocumentModel t,
  2. StorageConditionsModel conditions
)
override

Implementation

@override
DocumentModel setDefaultValues(
    DocumentModel t, StorageConditionsModel conditions) {
  return t.copyWith(
      background: t.background ?? BackgroundModel(),
      conditions: t.conditions ?? conditions);
}