CellUserSelectionModel.fromSelectionModel constructor

CellUserSelectionModel.fromSelectionModel(
  1. UserSelectionModel original, {
  2. required IntVector2 anchor,
  3. required IntVector2 focus,
})

Create a CellUserSelectionModel from any UserSelectionModel given an anchor and focus.

Implementation

factory CellUserSelectionModel.fromSelectionModel(
  UserSelectionModel original, {
  required IntVector2 anchor,
  required IntVector2 focus,
}) {
  return CellUserSelectionModel.fromAnchorFocus(
    id: original.id,
    anchor: anchor,
    focus: focus,
    style: original.style,
  );
}