afterAppend method

GraphViewport afterAppend(
  1. int appended, {
  2. required bool follow,
})

After appended new rows: a view at the end follows them, any other stays on the rows it shows.

Implementation

GraphViewport afterAppend(int appended, {required bool follow}) =>
    appended <= 0 || (follow && atEnd) ? this : GraphViewport(barSpacing: barSpacing, rightOffset: rightOffset - appended);