copyWith method

SnapMapSettings copyWith({
  1. String? themeName,
  2. String? layout,
  3. double? textSize,
  4. double? branchThickness,
  5. bool? isCompact,
})

Implementation

SnapMapSettings copyWith({
  String? themeName,
  String? layout,
  double? textSize,
  double? branchThickness,
  bool? isCompact,
}) {
  return SnapMapSettings(
    themeName: themeName ?? this.themeName,
    layout: layout ?? this.layout,
    textSize: textSize ?? this.textSize,
    branchThickness: branchThickness ?? this.branchThickness,
    isCompact: isCompact ?? this.isCompact,
  );
}