As noted earlier, Esri has deprecated the BasemapToggle widget in favor of the newer component by the same name. The pen below shows the use of this component. Note the setting of the position and next-basemap attributes.
See the Pen L8_BasemapToggle_component by Jim Detwiler (@jimdetwiler) on CodePen.