copyWith method

Context copyWith({
  1. PdfPage? page,
  2. PdfGraphics? canvas,
  3. Matrix4? ctm,
  4. HashMap<Type, Inherited>? inherited,
})

Implementation

Context copyWith(
    {PdfPage? page,
    PdfGraphics? canvas,
    Matrix4? ctm,
    HashMap<Type, Inherited>? inherited}) {
  return Context._(
      document: document,
      page: page ?? _page,
      canvas: canvas ?? _canvas,
      inherited: inherited ?? _inherited);
}