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