CountrySelector class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CountrySelector
Constructors
- CountrySelector({Key? key, Color primaryColor = StandardFieldStyle.primaryColor, Color fillColor = StandardFieldStyle.fillColor, BorderRadius borderRadius = StandardFieldStyle.borderRadius, required dynamic onCountrySelected(String countryName, String countryCode, String countryFlag), String fieldName = "Country", Color? fieldNameColor, double fieldFontSize = StandardFieldStyle.fieldFontSize, FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight, Color hintTextColor = StandardFieldStyle.hintTextColor, double hintTextFontSize = StandardFieldStyle.hintTextFontSize, FontWeight hintTextFontWeight = StandardFieldStyle.hintTextFontWeight, Color? iconColor, double iconSize = StandardFieldStyle.iconSize, bool showInfoSuffixIcon = true, bool outlinedIcon = StandardFieldStyle.outlinedIcon, bool showFlushBar = true, String flushBarMessage = "You can select a country now. Once your account is created, the country cannot be changed.", int flushBarDurationMessageInSec = 3, FlushbarPosition flushBarPosition = FlushbarPosition.TOP, EdgeInsets outsidePadding = StandardFieldStyle.outsidePadding, EdgeInsets insidePadding = const EdgeInsets.only(right: 0, left: 15, top: 10, bottom: 10), Border? borderStyle})
-
const
Properties
- borderRadius → BorderRadius
-
final
- borderStyle → Border?
-
final
- fieldFontSize → double
-
final
- fieldFontWeight → FontWeight
-
final
- fieldName → String
-
The label displayed above the field.
final
- fieldNameColor → Color?
-
final
- fillColor → Color
-
final
- flushBarDurationMessageInSec → int
-
final
- flushBarMessage → String
-
final
- flushBarPosition → FlushbarPosition
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintTextColor → Color
-
Hint text displayed inside the field.
final
- hintTextFontSize → double
-
final
- hintTextFontWeight → FontWeight
-
final
- iconColor → Color?
-
Icon shown as a prefix and suffix inside the field.
final
- iconSize → double
-
final
- insidePadding → EdgeInsets
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCountrySelected → dynamic Function(String countryName, String countryCode, String countryFlag)
-
final
- outlinedIcon → bool
-
final
- outsidePadding → EdgeInsets
-
final
- primaryColor → Color
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showFlushBar → bool
-
final
- showInfoSuffixIcon → bool
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → CountrySelectorState -
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, int wrapWidth = 65}) → 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