copyWith method

SystemInfoEntity copyWith({
  1. String? cloudId,
  2. String? commitHash,
  3. String? baseUrl,
  4. String? edition,
  5. String? siteTitle,
  6. String? defaultLocale,
  7. String? defaultTimeZone,
})

Implementation

SystemInfoEntity copyWith(
    {String? cloudId,
    String? commitHash,
    String? baseUrl,
    String? edition,
    String? siteTitle,
    String? defaultLocale,
    String? defaultTimeZone}) {
  return SystemInfoEntity(
    cloudId: cloudId ?? this.cloudId,
    commitHash: commitHash ?? this.commitHash,
    baseUrl: baseUrl ?? this.baseUrl,
    edition: edition ?? this.edition,
    siteTitle: siteTitle ?? this.siteTitle,
    defaultLocale: defaultLocale ?? this.defaultLocale,
    defaultTimeZone: defaultTimeZone ?? this.defaultTimeZone,
  );
}