copyWith method

EpubSpine copyWith({
  1. Maybe<String> tableOfContents = const Maybe.none(),
  2. Maybe<List<EpubSpineItemRef>> items = const Maybe.none(),
})

Implementation

EpubSpine copyWith(
        {Maybe<String> tableOfContents = const Maybe.none(),
        Maybe<List<EpubSpineItemRef>> items = const Maybe.none()}) =>
    EpubSpine(tableOfContents.valueOr(this.tableOfContents),
        items.valueOr(this.items));