CellUserSelectionModel.fromSelectionModel constructor
CellUserSelectionModel.fromSelectionModel(
- UserSelectionModel original, {
- required IntVector2 anchor,
- 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,
);
}