copyWith method

Bossbar copyWith({
  1. BossbarType? type,
  2. String? id,
})

Implementation

Bossbar copyWith({
  BossbarType? type,
  String? id,
}) {
  return Bossbar(
    id ?? this.id,
    name: name,
    type: type ?? this.type,
  );
}