ResponsiveFormField<T> constructor
const
ResponsiveFormField<T> ({
- required FormFieldBuilder<
T> builder, - FormFieldSetter<
T> ? onSaved, - FormFieldValidator<
T> ? validator, - T? initialValue,
- bool enabled = true,
- AutovalidateMode? autovalidateMode,
- String? restorationId,
- int? sizeExtraSmall,
- int? sizeSmall,
- int? sizeMedium,
- int? sizeLarge,
- int? sizeExtraLarge,
- double? minHeight,
- Key? key,
Implementation
const ResponsiveFormField({
required super.builder,
super.onSaved,
super.validator,
super.initialValue,
super.enabled = true,
super.autovalidateMode,
super.restorationId,
this.sizeExtraSmall,
this.sizeSmall,
this.sizeMedium,
this.sizeLarge,
this.sizeExtraLarge,
this.minHeight,
super.key,
}) : assert(
sizeExtraSmall == null || sizeExtraSmall > 0,
'sizeExtraSmall must be greater than zero.',
),
assert(
sizeSmall == null || sizeSmall > 0,
'sizeSmall must be greater than zero.',
),
assert(
sizeMedium == null || sizeMedium > 0,
'sizeMedium must be greater than zero.',
),
assert(
sizeLarge == null || sizeLarge > 0,
'sizeLarge must be greater than zero.',
),
assert(
sizeExtraLarge == null || sizeExtraLarge > 0,
'sizeExtraLarge must be greater than zero.',
),
assert(
minHeight == null || minHeight >= 0,
'minHeight must be equal or greater than zero.',
);