showHandles method
Builds the handles by inserting them into the context's overlay.
Implementation
void showHandles() {
if (_handles != null) {
return;
}
final OverlayState overlay = Overlay.of(context, rootOverlay: true, debugRequiredFor: debugRequiredFor);
final CapturedThemes capturedThemes = InheritedTheme.capture(
from: context,
to: overlay.context,
);
_handles = (
start: OverlayEntry(builder: (BuildContext context) {
return capturedThemes.wrap(_buildStartHandle(context));
}),
end: OverlayEntry(builder: (BuildContext context) {
return capturedThemes.wrap(_buildEndHandle(context));
}),
);
overlay.insertAll(<OverlayEntry>[_handles!.start, _handles!.end]);
}