fix: make the finish() function private

This commit is contained in:
Vincent Chan 2022-07-18 18:39:44 +08:00
parent 9307edb50d
commit e9ce4c5f05

View File

@ -27,7 +27,7 @@ class TransactionBuilder {
TransactionBuilder(this.state);
commit() {
final transaction = finish();
final transaction = _finish();
state.apply(transaction);
}
@ -61,7 +61,7 @@ class TransactionBuilder {
.add(TextEditOperation(path: path, delta: delta, inverted: inverted));
}
Transaction finish() {
Transaction _finish() {
return Transaction(
operations: UnmodifiableListView(operations),
cursorSelection: cursorSelection,