copyWith method

BrowserTab copyWith({
  1. int? id,
  2. String? title,
  3. GLTabKind? kind,
  4. bool? dirty,
  5. bool? pinned,
})

Implementation

BrowserTab copyWith({int? id, String? title, GLTabKind? kind, bool? dirty, bool? pinned}) =>
    BrowserTab(
      id: id ?? this.id,
      title: title ?? this.title,
      kind: kind ?? this.kind,
      dirty: dirty ?? this.dirty,
      pinned: pinned ?? this.pinned,
    );