sliced method

DataFrame sliced({
  1. int start = 0,
  2. int? end,
  3. bool asView = true,
})

Returns a DataFrame whose rows have been sliced with respect to start & end.

asView set to true leads to a view of the current data being returned, otherwise a copy will be returned.

Implementation

DataFrame sliced({int start = 0, int? end, bool asView = true}) =>
    _viewOrCopy(columnNames, getRange(start, end ?? length).toList(), asView);