Unverified Commit cd2413c2 authored by Tomasz Gucio's avatar Tomasz Gucio Committed by GitHub

Avoid unnecessary lambdas in SelectionOverlay.showHandles() (#98912)

parent 3b05d806
...@@ -809,8 +809,8 @@ class SelectionOverlay { ...@@ -809,8 +809,8 @@ class SelectionOverlay {
return; return;
_handles = <OverlayEntry>[ _handles = <OverlayEntry>[
OverlayEntry(builder: (BuildContext context) => _buildStartHandle(context)), OverlayEntry(builder: _buildStartHandle),
OverlayEntry(builder: (BuildContext context) => _buildEndHandle(context)), OverlayEntry(builder: _buildEndHandle),
]; ];
Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)! Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor)!
......
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