ENUM

TextFormField.Kind

Contents

swift
public enum Kind: RawRepresentable, Decodable, Equatable

Kind of the field. The kind of a field specializes its meaning, allowing clients that support a certain "kind" to provide an improved user experience.

Cases

number

swift
case number

A number kind.

email

swift
case email

An email kind.

url

swift
case url

An url kind.

tel

swift
case tel

A telephone kind.

color

swift
case color

A color kind.

unknown(value:)

swift
case unknown(value: String)

An unknown kind, storing a String value.

Properties

rawValue

swift
public var rawValue: String

Methods

init(rawValue:)

swift
public init(rawValue: String)

Parameters

Name Description
rawValue The raw value to use for the new instance.