copyWith method

AppSettings copyWith({
  1. String? themeName,
  2. String? lastSelectedDeviceId,
})

Implementation

AppSettings copyWith({
  String? themeName,
  String? lastSelectedDeviceId,
}) {
  return AppSettings(
    themeName: themeName ?? this.themeName,
    lastSelectedDeviceId: lastSelectedDeviceId ?? this.lastSelectedDeviceId,
  );
}