Avoid unnecessary lambdas in SelectionOverlay.showHandles() (#98912)
This commit is contained in:
@@ -809,8 +809,8 @@ class SelectionOverlay {
|
||||
return;
|
||||
|
||||
_handles = <OverlayEntry>[
|
||||
OverlayEntry(builder: (BuildContext context) => _buildStartHandle(context)),
|
||||
OverlayEntry(builder: (BuildContext context) => _buildEndHandle(context)),
|
||||
OverlayEntry(builder: _buildStartHandle),
|
||||
OverlayEntry(builder: _buildEndHandle),
|
||||
];
|
||||
|
||||
Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)!
|
||||
|
||||
Reference in New Issue
Block a user