Skip to content

Commit 1512b9b

Browse files
committed
Implement remove value operation for list type variable
1 parent 451b974 commit 1512b9b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/src/api/models/action/set_variable_action.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ enum ListOperation {
2424
insert,
2525

2626
/// Remove value at [index] from the list.
27+
removeAt,
28+
29+
/// Remove [newValue] from the list.
2730
remove,
2831

2932
/// Update value at [index] with [newValue] in the list.
@@ -38,6 +41,8 @@ enum ListOperation {
3841
return 'Add';
3942
case ListOperation.insert:
4043
return 'Insert';
44+
case ListOperation.removeAt:
45+
return 'Remove At';
4146
case ListOperation.remove:
4247
return 'Remove';
4348
case ListOperation.update:
@@ -60,6 +65,7 @@ class SetVariableAction extends ActionModel
6065
/// if the variable is a boolean.
6166
final bool toggled;
6267

68+
/// Operation to be performed on the list type variable.
6369
final ListOperation listOperation;
6470

6571
/// Index of the value to be updated/removed/inserted.

lib/src/api/models/action/set_variable_action.g.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)