CupertinoPickerDefaultSelectionOverlay class Null safety

A default selection overlay for CupertinoPickers.

It draws a gray rounded rectangle to match the picker visuals introduced in iOS 14.

This widget is typically only used in CupertinoPicker.selectionOverlay. In an iOS 14 multi-column picker, the selection overlay is a single rounded rectangle that spans the entire multi-column picker. To achieve the same effect using CupertinoPickerDefaultSelectionOverlay, the additional margin and corner radii on the left or the right side can be disabled by turning off capStartEdge and capEndEdge, so this selection overlay visually connects with selection overlays of adjoining CupertinoPickers (i.e., other "column"s).

See also:



CupertinoPickerDefaultSelectionOverlay({Key? key, Color background = CupertinoColors.tertiarySystemFill, bool capStartEdge = true, bool capEndEdge = true})
Creates an iOS 14 style selection overlay that highlights the magnified area (or the currently selected item, depending on how you described it elsewhere) of a CupertinoPicker.


background Color
The color to fill in the background of the CupertinoPickerDefaultSelectionOverlay. It Support for use CupertinoDynamicColor.
capEndEdge bool
Whether to use the default use rounded corners and margin on the end side.
capStartEdge bool
Whether to use the default use rounded corners and margin on the start side.
hashCode int
The hash code for this object.
@nonVirtual, read-only, inherited
key Key?
Controls how one widget replaces another widget in the tree.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
toString({DiagnosticLevel minLevel =}) String
A string representation of this object.
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
toStringShort() String
A short, textual description of this widget.


operator ==(Object other) bool
The equality operator.
@nonVirtual, inherited