copyWith method

MyLocationModel copyWith({
  1. bool? isActive,
  2. bool? isHideable,
  3. CameraBehaviour? behaviour,
  4. String? iconAssetName,
})

Implementation

MyLocationModel copyWith({
  bool? isActive,
  bool? isHideable,
  sdk.CameraBehaviour? behaviour,
  String? iconAssetName,
}) {
  return MyLocationModel(
    isActive: isActive ?? this.isActive,
    isHideable: isHideable ?? this.isHideable,
    behaviour: behaviour ?? this.behaviour,
    iconAssetName: iconAssetName ?? this.iconAssetName,
  );
}