FieldDefaults class

Defaults for Input, the fields built on it, Select, Autocomplete, DatePicker, DateRangePicker, NumberField and InputOtp.

Constructors

FieldDefaults({SizeToken? size, FieldVariant? variant, RadiusToken? radius, List<BoxShadow>? shadows})
Creates field defaults.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
radius → RadiusToken?
Corner radius.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shadows → List<BoxShadow>?
Shadow of the filled variants; outline, secondary and ghost fields stay flat.
final
size → SizeToken?
Control size.
final
variant → FieldVariant?
Visual style. NumberField and InputOtp map it to their own variants: outline to outline, secondary to secondary, and soft or ghost to soft.
final

Methods

copyWith({SizeToken? size, FieldVariant? variant, RadiusToken? radius, List<BoxShadow>? shadows}) → FieldDefaults
Returns a copy with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override