mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-24 09:38:25 +00:00
fix: make the finish() function private
This commit is contained in:
parent
9307edb50d
commit
e9ce4c5f05
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue