CountrySelectorVariant

The visual form of a country selector. Every variant opens the same picker with the same behaviour — they differ in footprint, never in function.

Entries

Link copied to clipboard

A raised card with a hairline and soft shadow — the Signature field.

Link copied to clipboard

A transparent field with an outline.

Link copied to clipboard

A softly filled field without an outline.

Link copied to clipboard

Just an underline, for forms that are already boxed.

Link copied to clipboard

A large card: a big flag, the name, and the country's region, dial code and ISO code.

Link copied to clipboard

A pill with the flag and name, for toolbars and dense rows.

Link copied to clipboard

A pill with only the flag.

Link copied to clipboard

A pill with the flag and dial code — the phone prefix.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

True for the full-width field variants; false for the pills.

Link copied to clipboard

True for the pill variants.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.