CountryPickerCupertino class
Provides a customizable CupertinoPicker which displays all countries in cupertino style
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CountryPickerCupertino
Constructors
-
CountryPickerCupertino({Key? key, required ValueChanged<
Country> onValuePicked, ItemBuilder? itemBuilder, ItemFilter? itemFilter, Comparator<Country> ? sortComparator, List<Country> ? priorityList, double pickerItemHeight = defaultPickerItemHeight, double pickerSheetHeight = defaultPickerSheetHeight, TextStyle? textStyle, double diameterRatio = _kDefaultDiameterRatio, Color backgroundColor = _kDefaultBackground, double offAxisFraction = 0.0, bool useMagnifier = false, double magnification = 1.0, FixedExtentScrollController? scrollController, Country? initialCountry}) -
const
Properties
- backgroundColor → Color
-
Background color behind the children.
final
- diameterRatio → double
-
Relative ratio between this picker's height and the simulated cylinder's diameter.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialCountry → Country?
-
final
- itemBuilder → ItemBuilder?
-
Callback that is called with selected item of type Country which returns a
Widget to build list view item inside dialog
final
- itemFilter → ItemFilter?
-
Filters the available country list
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- magnification → double
-
final
- offAxisFraction → double
-
final
-
onValuePicked
→ ValueChanged<
Country> -
Callback that is called with selected Country
final
- pickerItemHeight → double
-
The
itemExtent
of CupertinoPicker The uniform height of all children.final - pickerSheetHeight → double
-
The height of the picker
final
-
priorityList
→ List<
Country> ? -
List of countries that are placed on top
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → FixedExtentScrollController?
-
A FixedExtentScrollController to read and control the current item.
final
-
sortComparator
→ Comparator<
Country> ? -
Comparator to be used in sort of country list
final
- textStyle → TextStyle?
-
The TextStyle that is applied to Text widgets inside item
final
- useMagnifier → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CountryPickerCupertino> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited