mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: make the finish() function private
This commit is contained in:
parent
9307edb50d
commit
e9ce4c5f05
@ -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 New Issue
Block a user