copyWith method

ScreenableTab copyWith({
  1. int? id,
  2. String? name,
})

Implementation

ScreenableTab copyWith({int? id, String? name}) {
  return ScreenableTab(
    id: id ?? this.id,
    name: name ?? this.name,
  );
}