merge method

  1. @override
FastAppSettingsDocument merge(
  1. covariant FastAppSettingsDocument model
)
override

Merges another FastAppSettingsDocument object into the current instance.

Creates a new instance with properties taken from the model object, except for the ones that are null.

Implementation

@override

/// Merges another [FastAppSettingsDocument] object into the current instance.
///
/// Creates a new instance with properties taken from the [model] object,
/// except for the ones that are `null`.
FastAppSettingsDocument merge(covariant FastAppSettingsDocument model) {
  return copyWith(
    primaryCurrencyCode: model.primaryCurrencyCode,
    secondaryCurrencyCode: model.secondaryCurrencyCode,
    use24HourFormat: model.use24HourFormat,
    countryCode: () => model.countryCode,
    languageCode: model.languageCode,
    saveEntry: model.saveEntry,
    theme: model.theme,
  );
}