HeaderUserSelectionModel.fromSelectionModel constructor

HeaderUserSelectionModel.fromSelectionModel(
  1. UserSelectionModel original, {
  2. required int anchor,
  3. required int focus,
  4. required Axis axis,
})

Create a HeaderUserSelectionModel from any UserSelectionModel given an anchor, focus and axis.

Implementation

factory HeaderUserSelectionModel.fromSelectionModel(
  UserSelectionModel original, {
  required int anchor,
  required int focus,
  required Axis axis,
}) {
  return HeaderUserSelectionModel.fromAnchorFocus(
    id: original.id,
    anchor: anchor,
    focus: focus,
    axis: axis,
    style: original.style,
  );
}