_SelectableFragment should dispatch creation in constructor. (#133351)

This commit is contained in:
Polina Cherkasova
2023-08-25 17:03:47 -07:00
committed by GitHub
parent 305c4db6a6
commit 343000b6e9

View File

@@ -1322,6 +1322,9 @@ class _SelectableFragment with Selectable, ChangeNotifier implements TextLayoutM
required this.fullText,
required this.range,
}) : assert(range.isValid && !range.isCollapsed && range.isNormalized) {
if (kFlutterMemoryAllocationsEnabled) {
maybeDispatchObjectCreation();
}
_selectionGeometry = _getSelectionGeometry();
}