CupertinoPickerSelectionOverlay.underline constructor

CupertinoPickerSelectionOverlay.underline({
  1. BuildContext? context,
  2. double width = 1,
  3. Color? color,
})

Implementation

factory CupertinoPickerSelectionOverlay.underline({ BuildContext? context, double width = 1, Color? color }) {
  var underlineColor = color ??  themeUnderlineColor(context) ?? Color(0xFF000000);

  return CupertinoPickerSelectionOverlay(
    background: Colors.transparent,
    border: Border(
      bottom: BorderSide(
        width: width,
        color: underlineColor,
      ),
    ),
    borderRadius: BorderRadius.zero
  );
}