Unverified Commit 343000b6 authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

_SelectableFragment should dispatch creation in constructor. (#133351)

parent 305c4db6
...@@ -1322,6 +1322,9 @@ class _SelectableFragment with Selectable, ChangeNotifier implements TextLayoutM ...@@ -1322,6 +1322,9 @@ class _SelectableFragment with Selectable, ChangeNotifier implements TextLayoutM
required this.fullText, required this.fullText,
required this.range, required this.range,
}) : assert(range.isValid && !range.isCollapsed && range.isNormalized) { }) : assert(range.isValid && !range.isCollapsed && range.isNormalized) {
if (kFlutterMemoryAllocationsEnabled) {
maybeDispatchObjectCreation();
}
_selectionGeometry = _getSelectionGeometry(); _selectionGeometry = _getSelectionGeometry();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment